8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be2e675 commit 660d2f7Copy full SHA for 660d2f7
lib/less/parser.js
@@ -52,6 +52,8 @@ less.Parser = function Parser(env) {
52
inputLength,
53
parser;
54
55
+ var that = this;
56
+
57
// This function is called after all files
58
// have been imported through `@import`.
59
var finish = function () {};
@@ -187,8 +189,8 @@ less.Parser = function Parser(env) {
187
189
// Either delimited by /\n\n/ or
188
190
// delmited by '\n}' (see rationale above),
191
// depending on the level of optimization.
- if (this.optimization > 0) {
- if (this.optimization > 2) {
192
+ if (that.optimization > 0) {
193
+ if (that.optimization > 2) {
194
input = input.replace(/\/\*(?:[^*]|\*+[^\/*])*\*+\//g, '');
195
chunks = input.split(/^(?=\n)/mg);
196
} else {
0 commit comments