chore: style&&lint

This commit is contained in:
手瓜一十雪
2024-08-22 14:12:24 +08:00
parent 471a414d86
commit 10138b289e
14 changed files with 82 additions and 82 deletions

View File

@@ -237,9 +237,9 @@ export async function uri2local(dir: string, uri: string, filename: string | und
const pathInfo = path.parse(decodeURIComponent(new URL(HandledUri).pathname));
if (pathInfo.name) {
filename = pathInfo.name;
if (pathInfo.ext) {
filename += pathInfo.ext;
}
if (pathInfo.ext) {
filename += pathInfo.ext;
}
}
filename = filename.replace(/[/\\:*?"<>|]/g, '_');
const fileExt = path.extname(HandledUri);