diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-22 22:08:45 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-22 22:08:45 +0200 |
commit | 339e37135212600284d2df67dce393c01f60cdf0 (patch) | |
tree | 4d24221b9ec4039fe74e25e27fe2c8c628526938 | |
parent | 31afd20b68a00a1cf0564b7941cb5cc1f73ba1bf (diff) | |
download | isda-339e37135212600284d2df67dce393c01f60cdf0.tar isda-339e37135212600284d2df67dce393c01f60cdf0.tar.bz2 isda-339e37135212600284d2df67dce393c01f60cdf0.tar.zst |
also complete from default template filenames
-rw-r--r-- | scripts/complete_from_files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/complete_from_files.ts b/scripts/complete_from_files.ts index 8093c20..0a9357b 100644 --- a/scripts/complete_from_files.ts +++ b/scripts/complete_from_files.ts @@ -13,7 +13,7 @@ async function traverse(path: string) { let counter = 0; function mark_complete(name: string) { // TODO other platforms - const r = /([A-Za-z0-9-_]{11})\.mkv/g.exec(name) + const r = /([A-Za-z0-9-_]{11})\.mkv/g.exec(name) ?? /.+ \[([A-Za-z0-9-_]{11})\].mkv/g.exec(name) if (!r) return const id = r[1] counter += 1 |