summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/util/BannedWords.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/util/BannedWords.ts b/src/util/util/BannedWords.ts
index 04c504f5..28b03546 100644
--- a/src/util/util/BannedWords.ts
+++ b/src/util/util/BannedWords.ts
@@ -22,6 +22,9 @@ export const BannedWords = {
 
 	find: (val: string) => {
 		InvisibleCharacters.forEach(x => val = val.replaceAll(x, ""));
-		return words.some((x) => val.indexOf(x) != -1);
+		var normal = words.some((x) => val.indexOf(x) != -1);
+		val = val.split("").reverse().join("");
+		var rtlOverride = words.some((x) => val.indexOf(x) != -1);
+		return normal || rtlOverride;
 	},
 };