Comparing version
@@ -1221,3 +1221,7 @@ 'use strict'; | ||
// a part of the value | ||
if((!characterParser.isPunctuator(str[x]) || quoteRe.test(str[x]) || str[x] === ':') && this.assertExpression(val, true)){ | ||
const isNotPunctuator = !characterParser.isPunctuator(str[x]) | ||
const isQuote = quoteRe.test(str[x]) | ||
const isColon = str[x] === ':' | ||
const isSpreadOperator = str[x] + str[x + 1] + str[x + 2] === '...' | ||
if ((isNotPunctuator || isQuote || isColon || isSpreadOperator) && this.assertExpression(val, true)) { | ||
done = true; | ||
@@ -1224,0 +1228,0 @@ } |
{ | ||
"name": "pug-lexer", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "The pug lexer (takes a string and converts it to an array of tokens)", | ||
@@ -11,3 +11,3 @@ "keywords": [ | ||
"is-expression": "^3.0.0", | ||
"pug-error": "^1.3.2" | ||
"pug-error": "^1.3.3" | ||
}, | ||
@@ -17,8 +17,12 @@ "devDependencies": { | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pugjs/pug-lexer.git" | ||
"url": "https://github.com/pugjs/pug/tree/master/packages/pug-lexer" | ||
}, | ||
"author": "ForbesLindesay", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "1bdf628a70fda7a0d840c52f3abce54b1c6b0130" | ||
} |
@@ -6,3 +6,4 @@ # pug-lexer | ||
[](https://travis-ci.org/pugjs/pug-lexer) | ||
[](https://david-dm.org/pugjs/pug-lexer) | ||
[](https://david-dm.org/pugjs/pug?path=packages/pug-lexer) | ||
[](https://david-dm.org/pugjs/pug?path=packages/pug-lexer&type=dev) | ||
[](https://www.npmjs.org/package/pug-lexer) | ||
@@ -9,0 +10,0 @@ [](https://codecov.io/gh/pugjs/pug-lexer) |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
74
1.37%0
-100%47140
-95.42%5
-96.73%1346
-8.5%Updated