Skip to content

Commit

Permalink
It looks prettier this way.
Browse files Browse the repository at this point in the history
  • Loading branch information
icealtria committed Jul 29, 2024
1 parent 1cfba38 commit a7af71c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export function generatePath(msg: MessageUpdate, setting: TGInboxSettings) {
function rereplaceSpecialChar(data: PathData) {
const regex = /[/\\[\]#^|:?*"<>]/g;

data.first_name = data.first_name.replace(regex, "_");
data.name = data.name.replace(regex, "_");
data.origin_name = data.origin_name.replace(regex, "_");
data.first_name = data.first_name.replace(regex, "~");
data.name = data.name.replace(regex, "~");
data.origin_name = data.origin_name.replace(regex, "~");

return data;
}
Expand Down

0 comments on commit a7af71c

Please sign in to comment.