mirror of https://gitlab.com/bashrc2/epicyon
Support Korean language hashtags
parent
de8ed448d8
commit
3772bf8e66
1
tests.py
1
tests.py
|
@ -5326,6 +5326,7 @@ def _test_valid_hash_tag():
|
|||
assert valid_hash_tag('ThisIsValid12345')
|
||||
assert valid_hash_tag('ThisIsVälid')
|
||||
assert valid_hash_tag('यहमान्यहै')
|
||||
assert valid_hash_tag('한국어')
|
||||
assert not valid_hash_tag('ThisIsNotValid!')
|
||||
assert not valid_hash_tag('#ThisIsAlsoNotValid')
|
||||
assert not valid_hash_tag('#यहमान्यहै')
|
||||
|
|
5
utils.py
5
utils.py
|
@ -1864,6 +1864,11 @@ def _is_valid_language(text: str) -> bool:
|
|||
"Ogham": [5760, 5792],
|
||||
"Runic": [5792, 5888],
|
||||
"Khmer": [6016, 6144],
|
||||
"Hangul Syllables": [44032, 55203],
|
||||
"Hangul Jamo": [4352, 4607],
|
||||
"Hangul Compatibility Jamo": [12592, 12687],
|
||||
"Hangul Jamo Extended-A": [43360, 43391],
|
||||
"Hangul Jamo Extended-B": [55216, 55295],
|
||||
"Mongolian": [6144, 6320]
|
||||
}
|
||||
for lang_name, lang_range in natural_languages.items():
|
||||
|
|
Loading…
Reference in New Issue