Arabic number of characters

merge-requests/30/head
Bob Mottram 2022-12-17 16:09:20 +00:00
parent d725a35183
commit 90e04a5a75
1 changed files with 1 additions and 1 deletions

View File

@ -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