Skip to content

Commit db4df78

Browse files
committed
Add missing semicolon and simply logic.
1 parent f004fb2 commit db4df78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function pathtoRegexp(path, keys, options) {
4040
+ (optional ? '' : slash)
4141
+ '(?:'
4242
+ (optional ? slash : '')
43-
+ (format || '') + (capture || (format && '([^/.]+)' || '([^/]+)')) + ')'
44-
+ (optional || '')
43+
+ (format || '') + (capture || (format ? '([^/.]+)' : '([^/]+)')) + ')'
44+
+ (optional || '');
4545
})
4646
.replace(/([\/.])/g, '\\$1')
4747
.replace(/\*/g, '(.*)');

0 commit comments

Comments
 (0)