File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ var Properties = {
171
171
valid = ValidationTypes . isAny ( expression , simple ) ;
172
172
if ( ! valid ) {
173
173
174
- if ( expression . peek ( ) == "/" && count > 0 && ! slash ) {
174
+ if ( String ( expression . peek ( ) ) = == "/" && count > 0 && ! slash ) {
175
175
slash = true ;
176
176
max = count + 5 ;
177
177
expression . next ( ) ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ var Validation = {
76
76
result = true ;
77
77
78
78
} else if ( comma ) {
79
- if ( expression . peek ( ) == "," ) {
79
+ if ( String ( expression . peek ( ) ) = == "," ) {
80
80
part = expression . next ( ) ;
81
81
} else {
82
82
break ;
@@ -94,7 +94,7 @@ var Validation = {
94
94
throw new ValidationError ( "Expected end of value but found '" + part + "'." , part . line , part . col ) ;
95
95
} else {
96
96
part = expression . previous ( ) ;
97
- if ( comma && part == "," ) {
97
+ if ( comma && String ( part ) = == "," ) {
98
98
throw new ValidationError ( "Expected end of value but found '" + part + "'." , part . line , part . col ) ;
99
99
} else {
100
100
throw new ValidationError ( "Expected (" + types + ") but found '" + value + "'." , value . line , value . col ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ var ValidationTypes = {
97
97
} ,
98
98
99
99
"<bg-image>" : function ( part ) {
100
- return this [ "<image>" ] ( part ) || this [ "<gradient>" ] ( part ) || part == "none" ;
100
+ return this [ "<image>" ] ( part ) || this [ "<gradient>" ] ( part ) || String ( part ) = == "none" ;
101
101
} ,
102
102
103
103
"<gradient>" : function ( part ) {
@@ -125,12 +125,12 @@ var ValidationTypes = {
125
125
if ( part . type === "function" && / ^ (?: \- (?: m s | m o z | o | w e b k i t ) \- ) ? c a l c / i. test ( part ) ) {
126
126
return true ;
127
127
} else {
128
- return part . type === "length" || part . type === "number" || part . type === "integer" || part == "0" ;
128
+ return part . type === "length" || part . type === "number" || part . type === "integer" || String ( part ) = == "0" ;
129
129
}
130
130
} ,
131
131
132
132
"<color>" : function ( part ) {
133
- return part . type === "color" || part == "transparent" || part == "currentColor" ;
133
+ return part . type === "color" || String ( part ) === "transparent" || String ( part ) = == "currentColor" ;
134
134
} ,
135
135
136
136
"<number>" : function ( part ) {
@@ -162,7 +162,7 @@ var ValidationTypes = {
162
162
} ,
163
163
164
164
"<percentage>" : function ( part ) {
165
- return part . type === "percentage" || part == "0" ;
165
+ return part . type === "percentage" || String ( part ) = == "0" ;
166
166
} ,
167
167
168
168
"<border-width>" : function ( part ) {
You can’t perform that action at this time.
0 commit comments