Skip to content

Commit 04a9eb3

Browse files
sy-recordsCopilot
andauthored
Update src/core/router/history/base.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 404d28c commit 04a9eb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/router/history/base.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ export class History {
3535
const [basePath, query] = path.split('?');
3636

3737
const hasValidExt = new RegExp(
38-
`\\.(${ext.replace(/^\./, '')}|html)$`,
39-
'g',
38+
`\\.(${ext.replace(/^\./, '')}|html)$`
4039
).test(basePath);
4140

4241
const updatedPath = hasValidExt

0 commit comments

Comments
 (0)