mirror of
https://github.com/less/less.js.git
synced 2026-01-22 13:48:03 -05:00
allow for operations with no spaces, such as '4+5'
This commit is contained in:
@@ -782,7 +782,8 @@ less.parser = {
|
||||
addition: function () {
|
||||
var m, a, op;
|
||||
if (m = $(this.multiplication)) {
|
||||
if ((op = $(/[-+]\s+/g)) && (a = $(this.addition))) {
|
||||
if ((op = $(/[-+]\s+/g) || (input[i - 1] != ' ' && $(/[-+]/g))) &&
|
||||
(a = $(this.addition))) {
|
||||
return new(tree.Operation)(op, [m, a]);
|
||||
} else {
|
||||
return m;
|
||||
|
||||
Reference in New Issue
Block a user