Skip to content

Commit

Permalink
allow underscore in dimension unit
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-phases-max committed Feb 27, 2015
1 parent 95441fa commit bbdbe9c
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 @@ -484,7 +484,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 bbdbe9c

Please sign in to comment.