Skip to content

Commit

Permalink
Fix parsing CSS with \r
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 21, 2023
1 parent 8972f76 commit fd33e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AT = '@'.charCodeAt(0)

const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g
const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g
const RE_BAD_BRACKET = /.[\n"'(/\\]/
const RE_BAD_BRACKET = /.[\r\n"'(/\\]/
const RE_HEX_ESCAPE = /[\da-f]/i

module.exports = function tokenizer(input, options = {}) {
Expand Down

0 comments on commit fd33e99

Please sign in to comment.