@tokey/css-value-parser
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -300,3 +300,3 @@ "use strict"; | ||
function isStartOfNumber(value) { | ||
const match = value.match(new RegExp(validNumberRegex, `i`)); | ||
const match = value.match(new RegExp(`^(` + validNumberRegex + `)`, `i`)); | ||
const numVal = match === null || match === void 0 ? void 0 : match[0]; | ||
@@ -303,0 +303,0 @@ return numVal ? [numVal, value.substring(numVal.length)] : false; |
{ | ||
"name": "@tokey/css-value-parser", | ||
"description": "value parser for css", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
@@ -14,3 +14,3 @@ "types": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@webref/css": "^2.0.12" | ||
"@webref/css": "^3.0.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "keywords": [ |
@@ -373,3 +373,3 @@ import { | ||
function isStartOfNumber(value: string): false | [number: string, leftover: string] { | ||
const match = value.match(new RegExp(validNumberRegex, `i`)); | ||
const match = value.match(new RegExp(`^(` + validNumberRegex + `)`, `i`)); | ||
const numVal = match?.[0]; | ||
@@ -376,0 +376,0 @@ return numVal ? [numVal, value.substring(numVal.length)] : false; |
Sorry, the diff of this file is not supported yet
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
135875