Skip to content

Allow overwriting regex routes

Compare
Choose a tag to compare
@wheresrhys wheresrhys released this 30 Oct 22:25
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.