Skip to content

Commit

Permalink
fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Oct 2, 2024
1 parent cb1afa6 commit 04d512b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const NATIVE_PLUGINS = ['starfield.esm', 'shatteredspace.esm', 'blueprint
export const NATIVE_MID_PLUGINS = ['sfbgs003.esm', 'sfbgs004.esm', 'sfbgs005.esm', 'sfbgs006.esm', 'sfbgs007.esm', 'sfbgs008.esm'];

export const isNativePlugin = (fileName: string) => {
const regex = new RegExp(`^sfbgs[0-9]{3}.esm$`, 'i');
const regex = new RegExp(`^sfbgs00[0-8].esm$`, 'i');
if (fileName.toLowerCase().match(regex)?.[0]) {
return true;
}
Expand Down

0 comments on commit 04d512b

Please sign in to comment.