diff options
author | frederik-h <frederik-h@users.noreply.github.com> | 2017-12-25 15:42:21 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2017-12-25 15:42:21 +0100 |
commit | 293c379e1634b39315cf6a8cab80470aa3c50ad0 (patch) | |
tree | d2981d9090007c901599f67cab8b8c9caaffba3d /tests/Hakyll/Core/Identifier | |
parent | e18de17f4f313483193daf68419a73f23aa79de1 (diff) | |
download | hakyll-293c379e1634b39315cf6a8cab80470aa3c50ad0.tar.gz |
Extend capture with Regex handling
Diffstat (limited to 'tests/Hakyll/Core/Identifier')
-rw-r--r-- | tests/Hakyll/Core/Identifier/Tests.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Identifier/Tests.hs b/tests/Hakyll/Core/Identifier/Tests.hs index a5de85a..2829927 100644 --- a/tests/Hakyll/Core/Identifier/Tests.hs +++ b/tests/Hakyll/Core/Identifier/Tests.hs @@ -42,6 +42,7 @@ captureTests = fromAssertions "capture" , Just ["lol", "fun/large"] @=? capture "*cat/**.jpg" "lolcat/fun/large.jpg" , Just [] @=? capture "\\*.jpg" "*.jpg" , Nothing @=? capture "\\*.jpg" "foo.jpg" + , Just ["xyz","42"] @=? capture (fromRegex "cat-([a-z]+)/foo([0-9]+).jpg") "cat-xyz/foo42.jpg" ] |