Replacing dash in static files
This commit is contained in:
parent
8101113505
commit
08ad4709c0
@ -110,6 +110,7 @@ staticFiles fp = do
|
|||||||
concat `fmap` mapM go fs
|
concat `fmap` mapM go fs
|
||||||
where
|
where
|
||||||
replace' '.' = '_'
|
replace' '.' = '_'
|
||||||
|
replace' '-' = '_'
|
||||||
replace' c = c
|
replace' c = c
|
||||||
go f = do
|
go f = do
|
||||||
let name = mkName $ intercalate "_" $ map (map replace') f
|
let name = mkName $ intercalate "_" $ map (map replace') f
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user