Skip to content

Commit

Permalink
13805
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <paul@reid-family.org>
  • Loading branch information
cobaltt7 committed Oct 6, 2023
1 parent f19886c commit 4466d73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/automod/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function decodeRegexps(regexps: RegExp[]) {
"p": "⒫⍴ppⓟℙₚᴘρϱⲣрየꮲᑭꓑ𝐏",
"q": "⒬۹9oqqⓠℚϙϱԛфգզⵕᑫ𝐐",
"r": "⒭rrⓡℝℛℜʀɾꭇꭈᴦⲅгհዪꭱꮁꮢꮧᖇꓣ乃几卂尺𝐑",
"s": "⒮§$₴5ssⓢₛꜱʂƽςѕꙅտֆꭶꮥꮪᔆᔕꓢ丂𝐒",
"s": "⒮§$₴ssⓢₛꜱʂƽςѕꙅտֆꭶꮥꮪᔆᔕꓢ丂𝐒",
"t": "⒯⊤⟙ℑttⓣₜᴛŧƫƭτⲧтፕꭲꮏキꓔ千",
"u": "⒰*∪⋃uuⓤꞟᴜꭎꭒɥvʋυսሀሁᑌꓴ𝐔-",
"v": "⒱℣√∨⋁☑✅✔✔️۷٧uvvⅴⓥⱽᴠνѵⴸꮙꮩᐯᐺꓦ𝐕",
Expand Down Expand Up @@ -64,8 +64,9 @@ export default function tryCensor(text: string, strikeShift = 0) {
words[index] ??= [];

return string.replaceAll(regexp, (word) => {
words[index]?.push(word);
if (!Number.isNaN(+word)) return word;

words[index]?.push(word);
return word.length < 3
? "#".repeat(word.length)
: word[0] + "#".repeat(word.length - 1);
Expand Down

0 comments on commit 4466d73

Please sign in to comment.