Skip to content

Commit 4e60965

Browse files
committed
fix(local): filename shoulde not have placeholder
1 parent 807a52f commit 4e60965

File tree

3 files changed

+59
-55
lines changed

3 files changed

+59
-55
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"prettier": "^3.3.3",
2626
"rimraf": "^6.0.1",
2727
"turbo": "^2.1.2",
28-
"typescript": "^5.5.4",
28+
"typescript": "^5.6.2",
2929
"unbuild": "^2.0.0",
3030
"vite": "^5.4.7",
3131
"vitepress": "1.3.4",

packages/local/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ export async function Local(options: LocalOptions): Promise<Plugin> {
112112
extension: result.parsed.file.extension
113113
});
114114
// Hack: check the format filename is valid
115-
if (filename.includes('{fansub}' || '{episode}' || '{season}')) {
115+
if (
116+
filename.includes('{fansub}') ||
117+
filename.includes('{episode}') ||
118+
filename.includes('{season}')
119+
) {
116120
continue;
117121
}
118122

pnpm-lock.yaml

Lines changed: 53 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)