We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e877e7a commit 07a627dCopy full SHA for 07a627d
src/core/router/history/base.js
@@ -32,9 +32,12 @@ export class History {
32
}
33
34
#getFileName(path, ext) {
35
- const [basePath, query] = path.split("?");
+ const [basePath, query] = path.split('?');
36
37
- const hasValidExt = new RegExp(`\\.(${ext.replace(/^\./, '')}|html)$`, 'g').test(basePath);
+ const hasValidExt = new RegExp(
38
+ `\\.(${ext.replace(/^\./, '')}|html)$`,
39
+ 'g',
40
+ ).test(basePath);
41
42
const updatedPath = hasValidExt
43
? basePath
0 commit comments