Skip to content

Commit 07a627d

Browse files
committed
ci: fix lint
1 parent e877e7a commit 07a627d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/router/history/base.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ export class History {
3232
}
3333

3434
#getFileName(path, ext) {
35-
const [basePath, query] = path.split("?");
35+
const [basePath, query] = path.split('?');
3636

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

3942
const updatedPath = hasValidExt
4043
? basePath

0 commit comments

Comments
 (0)