diff --git a/src/parser/parse-css.js b/src/parser/parse-css.js index 71cc806..464b75d 100644 --- a/src/parser/parse-css.js +++ b/src/parser/parse-css.js @@ -320,7 +320,7 @@ function read_arguments(it, composition, doodle) { arg += c; } - if (composition && (it.curr() == ')' || !/[0-9a-zA-Z_\-.]/.test(it.curr())) && !stack.length) { + if (composition && (it.curr(1) == ')' || !/[0-9a-zA-Z_\-.]/.test(it.curr())) && !stack.length) { if (group.length) { args.push(normalize_argument(group)); }