read the missing text value after loop

This commit is contained in:
yuanchuan 2017-02-25 09:16:46 +08:00
parent abaa3354b8
commit f45d2c199f
2 changed files with 4 additions and 0 deletions

View File

@ -386,6 +386,7 @@ function read_value(it) {
}
else if (/[;}]/.test(c)) {
if (text.value.length) value.push(text);
text = struct.text();
break;
}
else if (c == '@') {
@ -398,6 +399,7 @@ function read_value(it) {
}
it.next();
}
if (text.value.length) value.push(text);
return value;
}

View File

@ -135,6 +135,7 @@ function read_value(it) {
}
else if (/[;}]/.test(c)) {
if (text.value.length) value.push(text);
text = struct.text();
break;
}
else if (c == '@') {
@ -147,6 +148,7 @@ function read_value(it) {
}
it.next();
}
if (text.value.length) value.push(text);
return value;
}