Skip to content

Commit

Permalink
fix: remove trailing undescores from sanitized manga names
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Nov 3, 2022
1 parent 52ca56b commit c8c463d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const sanitizer = (value: string): string => {
return value
.replaceAll(/[\\/<>:;"'|?!*{}#%&^+,~\s]/g, '_')
.replaceAll(/__+/g, '_')
.replaceAll(/^[_\-.]+|[_\-.]+$/g, '_');
.replaceAll(/^[_\-.]+|[_\-.]+$/g, '');
};

export const getCronLabel = (cron: string): string | undefined => {
Expand Down

0 comments on commit c8c463d

Please sign in to comment.