postcss-less
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -12,5 +12,5 @@ const tokenizer = require('postcss/lib/tokenize'); | ||
while (token) { | ||
if (/\n/.test(token[1])) { | ||
if (/\r?\n/.test(token[1])) { | ||
// If there are quotes, fix tokenizer creating one token from start quote to end quote | ||
if (/['"].*\n/.test(token[1])) { | ||
if (/['"].*\r?\n/.test(token[1])) { | ||
// Add string before newline to inline comment token | ||
@@ -17,0 +17,0 @@ bits.push(token[1].substring(0, token[1].indexOf('\n'))); |
{ | ||
"name": "postcss-less", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "LESS parser for PostCSS", | ||
@@ -18,3 +18,2 @@ "license": "MIT", | ||
"ci:lint": "npm run lint && npm run security", | ||
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", | ||
"ci:test": "npm run test", | ||
@@ -48,3 +47,3 @@ "commitlint": "commitlint", | ||
"node-fetch": "^2.2.0", | ||
"nyc": "^13.0.1", | ||
"nyc": "^13.3.0", | ||
"postcss-parser-tests": "^6.3.1", | ||
@@ -51,0 +50,0 @@ "pre-commit": "^1.2.2", |
@@ -34,7 +34,7 @@ [tests]: https://img.shields.io/circleci/project/github/shellscape/postcss-less.svg | ||
Using yarn: | ||
<a href="https://www.patreon.com/shellscape"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160"> | ||
</a> | ||
```console | ||
yarn add postcss-less --dev | ||
``` | ||
Please consider [becoming a patron](https://www.patreon.com/shellscape) if you find this module useful. | ||
@@ -41,0 +41,0 @@ ## Usage |
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
18889