bare-script 3.8.13 → 3.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/parser.js +1 -1
- package/package.json +1 -1
package/lib/parser.js
CHANGED
|
@@ -657,7 +657,7 @@ function parseUnaryExpression(exprText, arrayLiterals) {
|
|
|
657
657
|
// Number?
|
|
658
658
|
const matchNumber = exprText.match(rExprNumber);
|
|
659
659
|
if (matchNumber !== null) {
|
|
660
|
-
const [numberStr] = matchNumber;
|
|
660
|
+
const [, numberStr] = matchNumber;
|
|
661
661
|
const number = (numberStr.startsWith('0x') ? parseInt(numberStr, 16) : parseFloat(numberStr));
|
|
662
662
|
const expr = {'number': number};
|
|
663
663
|
return [expr, exprText.slice(matchNumber[0].length)];
|