Fix missing ^, causing parse error. Fixes #2154

This commit is contained in:
Luke Page
2014-08-24 22:43:11 +01:00
committed by jurcovicovam
parent 37ae8c4adb
commit e33d0b9b79
3 changed files with 11 additions and 1 deletions

View File

@@ -1413,7 +1413,7 @@ less.Parser = function Parser(env) {
if (c === '/') {
save();
var slashedCombinator = $re(/\/[a-z]+\//i);
var slashedCombinator = $re(/^\/[a-z]+\//i);
if (slashedCombinator) {
forget();
return new(tree.Combinator)(slashedCombinator);

View File

@@ -55,6 +55,9 @@
.test {
color: 1px;
}
.sr-only-focusable {
clip: auto;
}
#last {
color: #0000ff;
}

View File

@@ -77,6 +77,13 @@
}
.mixin_def_with_colors();
// .s when
//R/2
.sr-only-focusable {
clip: auto;
}
#last { color: blue }
//