postcss-less
Advanced tools
Comparing version 3.1.3 to 3.1.4
@@ -0,1 +1,3 @@ | ||
/* eslint-disable no-param-reassign */ | ||
const tokenizer = require('postcss/lib/tokenize'); | ||
@@ -34,3 +36,2 @@ const Input = require('postcss/lib/input'); | ||
last = token; | ||
// eslint-disable-next-line no-param-reassign | ||
token = this.tokenizer.nextToken({ ignoreUnclosed: true }); | ||
@@ -43,5 +44,17 @@ } | ||
return true; | ||
} else if (token[1] === '/') { | ||
// issue #135 | ||
const next = this.tokenizer.nextToken({ ignoreUnclosed: true }); | ||
if (next[0] === 'comment' && /^\/\*/.test(next[1])) { | ||
next[0] = 'word'; | ||
next[1] = next[1].slice(1); | ||
token[1] = '//'; | ||
this.tokenizer.back(next); | ||
return module.exports.isInlineComment.bind(this)(token); | ||
} | ||
} | ||
return false; | ||
} | ||
}; |
{ | ||
"name": "postcss-less", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "LESS parser for PostCSS", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19258
359