Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: support overwriting routes with regex matcher
Prior to this change, using a regex matcher combined with `overwriteRoutes: true` would not overwrite the route. This is because the inspection was comparing regexes with `===` which will always return `false`. To fix this, object identifiers are coerced to strings before comparing. Function matchers are not affected by this change.
- Loading branch information
1 parent
99ef594
commit 3d12042
Showing
2 changed files
with
15 additions
and
5 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