From 9435c93ced3e30e40be1d48b9e326159b21c4e83 Mon Sep 17 00:00:00 2001 From: Yohan Date: Thu, 26 Jan 2017 14:05:22 +0900 Subject: [PATCH] Support unicode letters - Add 'Lo' to alphanumeric categories --- sqlalchemy_searchable/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlalchemy_searchable/parser.py b/sqlalchemy_searchable/parser.py index ccc2bf6..48cbcee 100644 --- a/sqlalchemy_searchable/parser.py +++ b/sqlalchemy_searchable/parser.py @@ -20,7 +20,7 @@ def is_alphanumeric(c): - return unicodedata.category(c) in ['Lu', 'Ll', 'Nd'] + return unicodedata.category(c) in ['Lo', 'Lu', 'Ll', 'Nd'] all_unicode = u''.join(six.unichr(c) for c in six.moves.range(65536))