Skip to content

Commit

Permalink
fix whitespace trim
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlingwes committed Feb 10, 2024
1 parent 25481cb commit 08dd030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/gen-killed-in-gaza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- "scripts/data/common/killed-in-gaza/**"
- "scripts/data/v2/killed-in-gaza.ts"
- "scripts/utils/sort-csv.ts"
- ".github/workflows/gen-killed-in-gaza.yml"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/sort-csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const sortCsv = (repoFilePath: string) => {
const b = new ArabicClass(bRaw).normalize();
return a.localeCompare(b);
})
.map((row) => row.replace(/\s+?,\s+?/, ",").trim())
.map((row) => row.replace(/\s*,\s*/, ",").trim())
.filter((row) => !!row);

const uniqueArParts = new Set<string>();
Expand Down

0 comments on commit 08dd030

Please sign in to comment.