regexparam
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -23,4 +23,4 @@ module.exports = function (str, loose) { | ||
keys: keys, | ||
pattern: new RegExp('^' + pattern + (loose ? '(?:$|\/)' : '\/?$'), 'i') | ||
pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i') | ||
}; | ||
} |
{ | ||
"name": "regexparam", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"repository": "lukeed/regexparam", | ||
@@ -5,0 +5,0 @@ "description": "A tiny (285B) utility that converts route patterns into RegExp. Limited alternative to `path-to-regexp` 🙇", |
Sorry, the diff of this file is not supported yet