Skip to content

Commit d265ef8

Browse files
committed
Does not parse a string in the url function again. fix #29
1 parent b953f11 commit d265ef8

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

src/com/inet/lib/less/LessParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ private Operation parseUrlParam() {
10631063
break;
10641064
case ')':
10651065
val = trim( builder );
1066-
op.addOperand( new ValueExpression( reader, val ) );
1066+
op.addOperand( new ValueExpression( reader, val, Expression.STRING ) );
10671067
return op;
10681068
default:
10691069
builder.append( ch );

src/com/inet/lib/less/ValueExpression.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ class ValueExpression extends Expression {
5151
super( obj, value );
5252
}
5353

54+
/**
55+
* Create a new instance.
56+
* @param obj another LessObject with parse position.
57+
* @param value the value
58+
* @param type the value type
59+
*/
60+
ValueExpression( LessObject obj, String value, int type ) {
61+
super( obj, value );
62+
this.type = type;
63+
this.unit = "";
64+
}
65+
5466
/**
5567
* Create a new value expression from a JavaScriptExpression.
5668
* @param expr another LessObject with parse position.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.blur {
2+
filter: url(#wherearemyglasses);
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.blur { filter: url(#wherearemyglasses); }

0 commit comments

Comments
 (0)