Skip to content

Commit

Permalink
Merge pull request less#2485 from seven-phases-max/allow-underscore-a…
Browse files Browse the repository at this point in the history
…fter-numbers

Allow underscore in a dimension unit
  • Loading branch information
SomMeri committed Dec 7, 2015
2 parents baf45ea + bbdbe9c commit 78bf3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ var Parser = function Parser(context, imports, fileInfo) {
return;
}

var value = parserInput.$re(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/i);
var value = parserInput.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);
if (value) {
return new(tree.Dimension)(value[1], value[2]);
}
Expand Down

0 comments on commit 78bf3f1

Please sign in to comment.