Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit c8c463d

Browse files
committed
fix: remove trailing undescores from sanitized manga names
1 parent 52ca56b commit c8c463d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const sanitizer = (value: string): string => {
66
return value
77
.replaceAll(/[\\/<>:;"'|?!*{}#%&^+,~\s]/g, '_')
88
.replaceAll(/__+/g, '_')
9-
.replaceAll(/^[_\-.]+|[_\-.]+$/g, '_');
9+
.replaceAll(/^[_\-.]+|[_\-.]+$/g, '');
1010
};
1111

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

0 commit comments

Comments
 (0)