find-my-way
Advanced tools
Comparing version 6.2.0 to 6.3.0
@@ -65,4 +65,9 @@ 'use strict' | ||
createParametricChild (regex) { | ||
let parametricChild = this.parametricChildren.find(child => child.regex === regex) | ||
const regexpSource = regex && regex.source | ||
let parametricChild = this.parametricChildren.find(child => { | ||
const childRegexSource = child.regex && child.regex.source | ||
return childRegexSource === regexpSource | ||
}) | ||
if (parametricChild) { | ||
@@ -69,0 +74,0 @@ return parametricChild |
@@ -444,6 +444,2 @@ 'use strict' | ||
if (param.length > maxParamLength) { | ||
return null | ||
} | ||
params.push(param) | ||
@@ -450,0 +446,0 @@ pathIndex = pathLen |
{ | ||
"name": "find-my-way", | ||
"version": "6.2.0", | ||
"version": "6.3.0", | ||
"description": "Crazy fast http radix based router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
308843
82
7773