Skip to content

Commit

Permalink
fix replaceall by regex without g flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Feb 5, 2024
1 parent 4e2b8f2 commit e55b24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/opfs-projects-shared-internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function hygienizeProjectName(name: string): string {
// just avoiding confusing/ugly trailing spaces:
.trim()
// possibly offends our regex of listing retrieval:
.replaceAll(/.json$/i, "")
.replaceAll(/.json$/gi, "")
// possibly offends our regex of listing retrieval:
.replaceAll('"', "")
// throws error on OPFS:
Expand Down

0 comments on commit e55b24d

Please sign in to comment.