Skip to content

Commit 30ef83a

Browse files
committed
(#669) Fix the unit test
1 parent 22897f0 commit 30ef83a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bot/Friday.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ytLinkId text =
105105
_ -> Nothing) =<<
106106
rightToMaybe
107107
(regexParseArgs
108-
"https?:\\/\\/(www\\.)?youtu(be\\.com\\/watch\\?v=|\\.be\\/)([a-zA-Z0-9\\-\\_]+)"
108+
"https?:\\/\\/(www\\.)?youtu(be\\.com\\/watch\\?v=|\\.be\\/)([a-zA-Z0-9_-]+)"
109109
text)
110110

111111
fridayCommand :: Reaction Message T.Text

test/Bot/FridayTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ytLinkIdTest =
4646
ytLinkId input)
4747
[ ("https://www.youtube.com/watch?v=etMJxBigrc", Just "etMJxBigrc")
4848
-- TODO(#669): ytLinkIdTest is failing
49-
-- , ("https://www.youtube.com/watch?v=etMJxB-igrc", Just "etMJxB-igrc")
49+
, ("https://www.youtube.com/watch?v=etMJxB-igrc", Just "etMJxB-igrc")
5050
]
5151

5252
spec :: Test

0 commit comments

Comments
 (0)