Skip to content

Commit

Permalink
Sanitize / in file name to _
Browse files Browse the repository at this point in the history
Fixes 70
  • Loading branch information
rseanhall committed Apr 28, 2023
1 parent a3b2177 commit 94b1a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const isFavouriteTeam = (
): boolean => !!favouriteTeamsAbbreviations && favouriteTeamsAbbreviations.indexOf(team.abbreviation) !== -1;

const sanitizeFeedInfoForFileName = (s: string): string => {
return s ? s.replace(/(\s|\.)+/g, "_").replace('+', 'plus') : s;
return s ? s.replace(/(\s|\.|\/)+/g, "_").replace('+', 'plus') : s;
}

main();

0 comments on commit 94b1a70

Please sign in to comment.