We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3443d9c commit 01b8788Copy full SHA for 01b8788
1 file changed
lib/parse.js
@@ -31,7 +31,6 @@ CSSOM.parse = function parse(token) {
31
var state = "before-selector";
32
33
var index;
34
- var j = i;
35
var buffer = "";
36
37
var SIGNIFICANT_WHITESPACE = {
@@ -66,8 +65,7 @@ CSSOM.parse = function parse(token) {
66
65
67
// String
68
case '"':
69
- j = i + 1;
70
- index = token.indexOf('"', j) + 1;
+ index = token.indexOf('"', i + 1) + 1;
71
if (!index) {
72
throw '" is missing';
73
}
@@ -84,8 +82,7 @@ CSSOM.parse = function parse(token) {
84
82
break;
85
83
86
case "'":
87
88
- index = token.indexOf("'", j) + 1;
+ index = token.indexOf("'", i + 1) + 1;
89
90
throw "' is missing";
91
0 commit comments