From bbdbe9c7d028558440e34b720bd1299407ee368e Mon Sep 17 00:00:00 2001 From: seven-phases-max Date: Sat, 28 Feb 2015 02:07:43 +0400 Subject: [PATCH] allow underscore in dimension unit --- lib/less/parser/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }