Parse CSS that doesn't contain the optional semicolon
This commit is contained in:
parent
ad6578f673
commit
1f379da94b
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ import Text.Parsec.String
|
|||
ruleParser :: Parser (String, String)
|
||||
ruleParser = do
|
||||
p <- many1 (noneOf ":") <* char ':'
|
||||
v <- many1 (noneOf ":;") <* char ';' <* spaces
|
||||
v <- many1 (noneOf ":;") <* (optional $ char ';') <* spaces
|
||||
return (trim p, trim v)
|
||||
|
||||
styleAttrParser :: Parser [(String, String)]
|
||||
|
|
Loading…
Reference in a new issue