Skip to content

Commit 3e89751

Browse files
committed
fixed parse error when broken comments
1 parent aff9c5f commit 3e89751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = function(css, options){
157157
if ('/' != css.charAt(0) || '*' != css.charAt(1)) return;
158158

159159
var i = 2;
160-
while (null != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i;
160+
while ('' !== css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i;
161161
i += 2;
162162

163163
var str = css.slice(2, i - 2);

0 commit comments

Comments
 (0)