Skip to content

Commit

Permalink
Make file extension matcher read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 28, 2024
1 parent 10e0978 commit 6f96568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/IO/FileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class FileSystem {
constructor(private readonly fs: typeof fs_promises) {
}

private static matchExtension: RegExp = new RegExp(/\.(\w+)$/);
private static readonly matchExtension: RegExp = new RegExp(/\.(\w+)$/);

static extension(file: string) {
const match = this.matchExtension.exec(file);
Expand Down

0 comments on commit 6f96568

Please sign in to comment.