Comparing version 1.1.0 to 1.1.1
17
index.js
@@ -290,9 +290,14 @@ /* | ||
// Remove trailing slash | ||
if (base && base.length > 1 && base[base.length - 1] === '/') { | ||
base = base.substring(0, base.length - 1); | ||
} | ||
if (base) { | ||
// Remove hash | ||
if (base.indexOf('#') > -1) { | ||
base = base.substring(0, base.indexOf('#')); | ||
} | ||
// Normalize the base (when available) | ||
if (base) { | ||
// Remove trailing slash | ||
if (base.length > 1 && base[base.length - 1] === '/') { | ||
base = base.substring(0, base.length - 1); | ||
} | ||
// Normalize the base | ||
base.split('#')[0].split('/').forEach(segmentHandler); | ||
@@ -299,0 +304,0 @@ } |
{ | ||
"name": "json-refs", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).", | ||
@@ -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
29729
681