Skip to content

Commit 9e8330a

Browse files
revolunetlukeapage
authored andcommitted
fix #31 and #406
Conflicts: lib/less/parser.js
1 parent 2c75e4f commit 9e8330a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/less/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,9 +974,9 @@ less.Parser = function Parser(env) {
974974

975975
if (c === '>' || c === '+' || c === '~') {
976976
i++;
977-
while (input.charAt(i) === ' ') { i++ }
977+
while (input.charAt(i).match(/\s/)) { i++ }
978978
return new(tree.Combinator)(c);
979-
} else if (input.charAt(i - 1) === ' ') {
979+
} else if (input.charAt(i - 1).match(/\s/)) {
980980
return new(tree.Combinator)(" ");
981981
} else {
982982
return new(tree.Combinator)(null);

0 commit comments

Comments
 (0)