diff --git a/test.ts b/test.ts index 5f6c775..6cee055 100644 --- a/test.ts +++ b/test.ts @@ -1747,7 +1747,7 @@ var TESTS: Test[] = [ ], [ '/route\\(\\\\(\\d+\\\\)\\)', - null, + null, [ '/route(\\', { @@ -1766,6 +1766,26 @@ var TESTS: Test[] = [ ], [] ], + [ + '/(login)?', + null, + [ + { + name: 0, + prefix: '/', + delimiter: '/', + optional: true, + repeat: false, + partial: false, + pattern: 'login' + } + ], + [ + ['/', ['/', undefined]], + ['/login', ['/login', 'login']] + ], + [] + ], /** * Regexps.