Fix css parsing on function composition

This commit is contained in:
yuanchuan 2021-11-09 15:45:01 +08:00
parent d0f2d10f39
commit 4e4ed11a47
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}