From 293c379e1634b39315cf6a8cab80470aa3c50ad0 Mon Sep 17 00:00:00 2001 From: frederik-h Date: Mon, 25 Dec 2017 15:42:21 +0100 Subject: Extend capture with Regex handling --- tests/Hakyll/Core/Identifier/Tests.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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" ] -- cgit v1.2.3