We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e98a6f commit a4b91bbCopy full SHA for a4b91bb
src/index.js
@@ -1,5 +1,6 @@
1
export default function (str, loose) {
2
- var c, o, tmp, ext, keys=[], pattern='', arr=str.split('/');
+ if (str instanceof RegExp) return { keys:false, pattern:str };
3
+ var c, o, tmp, ext, keys=[], pattern='', arr = str.split('/');
4
arr[0] || arr.shift();
5
6
while (tmp = arr.shift()) {
0 commit comments