Skip to content

Commit

Permalink
Add more special chars to fancy text converter
Browse files Browse the repository at this point in the history
Also now treats them as upper case
  • Loading branch information
ajayyy committed Jan 8, 2025
1 parent 3b5c2d3 commit c825511
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/titles/titleFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export function cleanFancyText(title: string): string {
// Allow emoji variation selectors on either side of the replacement character
// Supports emojis such as 🅱️
title = title.replace(new RegExp(`[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}]?${replacement[0]}[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}]?`
, "ug"), replacement[1]);
, "ug"), replacement[1].toUpperCase());
}

return title.trim();
Expand Down
Loading

0 comments on commit c825511

Please sign in to comment.