From 90e04a5a75e9a67e6b0cbe3183740d6b6ba88196 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 17 Dec 2022 16:09:20 +0000 Subject: [PATCH] Arabic number of characters --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 04b3f6234..519e2ad29 100644 --- a/utils.py +++ b/utils.py @@ -231,7 +231,7 @@ def is_arabic(content: str) -> bool: if result: result = result.strip() # more than a third of the content - if len(result) > 1: + if len(result) > len(content) / 3: return True return False