-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change semantics of wildcard patterns
This is a breaking API change that changes how wildcard patterns are treated. In particular, wildcards are no longer allowed to appear at arbitrary places in the URL, and are only allowed to appear immediately after a path separator. This change effectively changes the wildcard sigil from "*" to "/*". Users who use wildcard routes like "/hello*" will have to switch to regular expression based routes to preserve the old semantics. The motivation for this change is that it allows the router to publish a special "tail" key which represents the unmatched portion of the URL. This is placed into URLParams under the key "*", and includes a leading "/" to make it easier to write sub-routers.
- Loading branch information
Showing
5 changed files
with
42 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters