Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaray committed Nov 30, 2024
1 parent 72db8af commit ef670db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@ export function extractUnique(data: string) {
return { id: null, hash: null };
}
}

export function normalizeFilename(filename: string) {
return filename.replace(/[^\w\.]+/g, "_");
}

0 comments on commit ef670db

Please sign in to comment.