mirror of https://gitlab.com/bashrc2/epicyon
Arabic number of characters
parent
d725a35183
commit
90e04a5a75
2
utils.py
2
utils.py
|
@ -231,7 +231,7 @@ def is_arabic(content: str) -> bool:
|
||||||
if result:
|
if result:
|
||||||
result = result.strip()
|
result = result.strip()
|
||||||
# more than a third of the content
|
# more than a third of the content
|
||||||
if len(result) > 1:
|
if len(result) > len(content) / 3:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue