@emmetio/math-expression
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -337,3 +337,10 @@ 'use strict'; | ||
} | ||
return scanner.pos !== end && !braces ? [scanner.pos, end] : null; | ||
if (scanner.pos !== end && !braces) { | ||
// Trim whitespace | ||
while (isSpace(cur(scanner))) { | ||
scanner.pos++; | ||
} | ||
return [scanner.pos, end]; | ||
} | ||
return null; | ||
} | ||
@@ -340,0 +347,0 @@ /** |
@@ -333,3 +333,10 @@ /** | ||
} | ||
return scanner.pos !== end && !braces ? [scanner.pos, end] : null; | ||
if (scanner.pos !== end && !braces) { | ||
// Trim whitespace | ||
while (isSpace(cur(scanner))) { | ||
scanner.pos++; | ||
} | ||
return [scanner.pos, end]; | ||
} | ||
return null; | ||
} | ||
@@ -336,0 +343,0 @@ /** |
{ | ||
"name": "@emmetio/math-expression", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Parse and evaluate simple math expressions", | ||
@@ -5,0 +5,0 @@ "main": "./dist/math.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87115
902
0