summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-24 09:13:57 +0300
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-19 16:01:30 +1100
commit127aa3a68d182f549712492d6f088f6f5a1abe00 (patch)
treed4c5116ace0d485f895f02636ca05c8589feff60
parentmake it configurable by guild feature flag (diff)
downloadserver-127aa3a68d182f549712492d6f088f6f5a1abe00.tar.xz
removed char joiners as they are actually useful, added page break
-rw-r--r--src/util/util/InvisibleCharacters.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/util/InvisibleCharacters.ts b/src/util/util/InvisibleCharacters.ts
index da295d68..82031f53 100644
--- a/src/util/util/InvisibleCharacters.ts
+++ b/src/util/util/InvisibleCharacters.ts
@@ -1,9 +1,10 @@
 // List from https://invisible-characters.com/
 export const InvisibleCharacters = [
 	"\u{9}", //Tab
+	'\u{c}',			//Form feed
 	//'\u{20}',			//Space	//categories can have spaces in them
 	"\u{ad}", //Soft hyphen
-	"\u{34f}", //Combining grapheme joiner
+	//"\u{34f}", //Combining grapheme joiner
 	"\u{61c}", //Arabic letter mark
 	"\u{115f}", //Hangul choseong filler
 	"\u{1160}", //Hangul jungseong filler
@@ -23,12 +24,12 @@ export const InvisibleCharacters = [
 	"\u{200a}", //Hair space
 	"\u{200b}", //Zero width space
 	"\u{200c}", //Zero width non-joiner
-	"\u{200d}", //Zero width joiner
+	//"\u{200d}", //Zero width joiner
 	"\u{200e}", //Left-to-right mark
 	"\u{200f}", //Right-to-left mark
 	"\u{202f}", //Narrow no-break space
 	"\u{205f}", //Medium mathematical space
-	"\u{2060}", //Word joiner
+	//"\u{2060}", //Word joiner -- WJ is required in some languages that don't use spaces to split words
 	"\u{2061}", //Function application
 	"\u{2062}", //Invisible times
 	"\u{2063}", //Invisible separator