Skip to content

Commit

Permalink
fix whitespace character unexpected inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
thysultan committed Apr 12, 2023
1 parent d1a0855 commit 204b35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function parse (value, root, parent, rule, rules, rulesets, pseudo, point
// \0 }
case 0: case 125: scanning = 0
// ;
case 59 + offset:
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '')
if (property > 0 && (strlen(characters) - length))
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)
break
Expand Down

0 comments on commit 204b35d

Please sign in to comment.