Skip to content

Commit c45b306

Browse files
committed
Add normalizeInput to the functions it's missing in. Fix typos.
1 parent 5725b04 commit c45b306

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

parse-css.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ function parseAComponentValue(s) {
11691169
}
11701170

11711171
function parseAListOfComponentValues(s) {
1172+
s = normalizeInput(s);
11721173
var vals = [];
11731174
while(true) {
11741175
var val = consumeAComponentValue(s);
@@ -1180,15 +1181,16 @@ function parseAListOfComponentValues(s) {
11801181
}
11811182

11821183
function parseACommaSeparatedListOfComponentValues(s) {
1184+
s = normalizeInput(s);
11831185
var listOfCVLs = [];
11841186
while(true) {
11851187
var vals = [];
11861188
while(true) {
11871189
var val = consumeAComponentValue(s);
11881190
if(val instanceof EOFToken) {
1189-
return listOfCVLS;
1191+
return listOfCVLs;
11901192
} else if(val instanceof CommaToken) {
1191-
listOfCVLS.push(vals);
1193+
listOfCVLs.push(vals);
11921194
break;
11931195
} else {
11941196
vals.push(val);

0 commit comments

Comments
 (0)