[fix] adding Taiwan, Hong Kong, and Macao to the CJK patterns since language affects the order

This commit is contained in:
Al
2016-12-25 01:20:59 -05:00
parent 6da092e144
commit 5b5a3fe235

View File

@@ -57,6 +57,9 @@ PARSER_DEFAULT_CONFIG = os.path.join(this_dir, os.pardir, os.pardir, os.pardir,
CHINA = 'cn'
JAPAN = 'jp'
KOREA = 'kr'
TAIWAN = 'tw'
HONG_KONG = 'hk'
MACAO = 'mo'
JAPANESE_ROMAJI = 'ja_rm'
ENGLISH = 'en'
@@ -66,7 +69,7 @@ CHINESE = 'zh'
KOREAN = 'ko'
CJK_LANGUAGES = set([CHINESE, JAPANESE, KOREAN])
CJK_COUNTRIES = set([CHINA, JAPAN, KOREA])
CJK_COUNTRIES = set([CHINA, JAPAN, KOREA, TAIWAN, HONG_KONG, MACAO])
class AddressComponents(object):