Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevboh committed Jan 22, 2024
1 parent f02db92 commit 19b38c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export function invalidFilenameCharacters(): string {
}

export function isValidFilename(name: string): boolean {
if (Platform.isWin && name.match(/[\*"\\\/:<>|\?]*/g)) {
if (Platform.isWin && name.match(/[*"\\/:<>|?]*/g)) {
return false;
}
if (name.match(/[\/\\:]/g)) {
if (name.match(/[/\\:]/g)) {
return false;
}
return true;
Expand Down

0 comments on commit 19b38c1

Please sign in to comment.