summaryrefslogtreecommitdiff
path: root/src/Hakyll
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll')
-rw-r--r--src/Hakyll/Web/Template/Read.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Hakyll/Web/Template/Read.hs b/src/Hakyll/Web/Template/Read.hs
index f8583ff..7dfe003 100644
--- a/src/Hakyll/Web/Template/Read.hs
+++ b/src/Hakyll/Web/Template/Read.hs
@@ -6,12 +6,11 @@ module Hakyll.Web.Template.Read
--------------------------------------------------------------------------------
-import Data.List (isPrefixOf)
-import Data.Char (isAlphaNum)
+import Data.List (isPrefixOf)
--------------------------------------------------------------------------------
-import Hakyll.Web.Template.Internal
+import Hakyll.Web.Template.Internal
--------------------------------------------------------------------------------
@@ -39,4 +38,4 @@ readTemplate = Template . readTemplate'
then Just (key, drop 1 rest)
else Nothing
- validKeyChar x = isAlphaNum x || x == ' '
+ validKeyChar x = x `notElem` ['$', '\n', '\r']