Skip to content

Commit

Permalink
feat(file): replace mutliple occurences of dash by a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Mar 22, 2021
1 parent 9d71a3d commit 86278da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/FileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default class FileUtils {
.toLowerCase()
.replace(/\./gm, '')
.replace(/&/gm, '')
.replace(/\s/g, '-');
.replace(/\s/g, '-')
.replace(/-{2,}/g, '-');
}

static async asyncForEach(array, callback) {
Expand Down

0 comments on commit 86278da

Please sign in to comment.