We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22897f0 commit 30ef83aCopy full SHA for 30ef83a
2 files changed
src/Bot/Friday.hs
@@ -105,7 +105,7 @@ ytLinkId text =
105
_ -> Nothing) =<<
106
rightToMaybe
107
(regexParseArgs
108
- "https?:\\/\\/(www\\.)?youtu(be\\.com\\/watch\\?v=|\\.be\\/)([a-zA-Z0-9\\-\\_]+)"
+ "https?:\\/\\/(www\\.)?youtu(be\\.com\\/watch\\?v=|\\.be\\/)([a-zA-Z0-9_-]+)"
109
text)
110
111
fridayCommand :: Reaction Message T.Text
test/Bot/FridayTest.hs
@@ -46,7 +46,7 @@ ytLinkIdTest =
46
ytLinkId input)
47
[ ("https://www.youtube.com/watch?v=etMJxBigrc", Just "etMJxBigrc")
48
-- TODO(#669): ytLinkIdTest is failing
49
- -- , ("https://www.youtube.com/watch?v=etMJxB-igrc", Just "etMJxB-igrc")
+ , ("https://www.youtube.com/watch?v=etMJxB-igrc", Just "etMJxB-igrc")
50
]
51
52
spec :: Test
0 commit comments