-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(file-router): tune server routes addition in case of variabl…
…e routes presented (#2448) * refactor: get rid of rimraf in favor of native node:fs rm * refactor(file-router): forbid same names for directory and file * refactor(file-router): forbid @index and {{optional}} in the same dir * refactor(file-router): tune adding server cases in case of variable routes presented * fix(file-router): compare correct paths in search for @index * use regex without the global flag * replace regex.test with string.search * fix(file-router): check for the same file name beforehand --------- Co-authored-by: Manuel Carrasco Moñino <manolo@vaadin.com> Co-authored-by: taefi <taefi.soroosh@gmail.com>
- Loading branch information
1 parent
2c32e67
commit 78f4f92
Showing
5 changed files
with
151 additions
and
40 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