From 3e8975197d3d4b98736a9ab9317e9316e015127c Mon Sep 17 00:00:00 2001 From: rhiokim Date: Fri, 17 Jan 2014 12:46:22 +0900 Subject: [PATCH] fixed parse error when broken comments --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b82beb7..e0f3fe0 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,7 @@ module.exports = function(css, options){ if ('/' != css.charAt(0) || '*' != css.charAt(1)) return; var i = 2; - while (null != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i; + while ('' !== css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i; i += 2; var str = css.slice(2, i - 2);