Skip to content

Commit db34c23

Browse files
committed
the token was not stripped from comments, only spaces via trim(), fixes #430
1 parent bf23edf commit db34c23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org/w3c/css/values/CssCalc.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ public CssCalc setLeftSide(CssValue value)
107107

108108
public CssCalc addRightSide(String oper, CssValue value) throws InvalidParamException {
109109
_toString = null;
110+
int l = oper.length();
111+
if (l > 1) {
112+
oper = oper.substring(l - 1);
113+
}
110114
switch (oper) {
111115
case "+":
112116
operator = CssOperator.PLUS;

0 commit comments

Comments
 (0)