path-to-regex
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -99,6 +99,6 @@ module.exports = Regex; | ||
const isMultiple = (quant === "*" || quant === "+") ? true : false; | ||
// if (pat && /^(\[[^\[\]]+\]|\([^\(\)]+\)|\.|\\.)[\+\*]$/) isMultiple = true; | ||
// if (pat && /^(\[[^\[\]]+\]|\([^\(\)]+\)|\.|\\.)[\+\*]$/.test(pat) ) isMultiple = true; | ||
let isRequired = (quant !== "*" && quant !== "?") ? true : false; | ||
if (!quant && pat && /^(\[[^\[\]]+\]|\([^\(\)]+\)|\.|\\.)[\*\?]?$/) isRequired = false; | ||
if (!quant && pat && /^(\[[^\[\]]+\]|\([^\(\)]+\)|\.|\\.)[\*\?]?$/.test(pat)) isRequired = false; | ||
@@ -105,0 +105,0 @@ const quantifier = quant ? quant : ""; |
{ | ||
"name": "path-to-regex", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Turn a path string such as /user/:id or /user/:id(\\d+) into a regular expression", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
81276
1