diff --git a/lib/less/parser/parser.js b/lib/less/parser/parser.js index df309789b..f48102679 100644 --- a/lib/less/parser/parser.js +++ b/lib/less/parser/parser.js @@ -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]); }