-
-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use JS regular expression syntax, not
path-to-regexp
, in …
…`RegexRouter`.
- Loading branch information
Showing
7 changed files
with
153 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Historic parsing behavior mapped variables to non-'/'-delimiter characters. | ||
// Continue to do so even if matching something more precise would be more | ||
// sensible. | ||
export const Element = '[^/]+?' | ||
|
||
export const Page = `(?<page>${Element})` | ||
export const Location = `${Page}/(?<row>${Element})/(?<column>${Element})` | ||
|
||
export const Bank = `(?<bank>${Element})` | ||
|
||
export const VariableName = `(?<name>${Element})` |
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
Oops, something went wrong.