diff --git a/scripts/geodata/i18n/transliteration_rules.py b/scripts/geodata/i18n/transliteration_rules.py index 82ca8ad6..17342c36 100644 --- a/scripts/geodata/i18n/transliteration_rules.py +++ b/scripts/geodata/i18n/transliteration_rules.py @@ -183,7 +183,7 @@ char_class_regex_str = '\[(?:[^\[\]]*\[[^\[\]]*\][^\[\]]*)*[^\[\]]*\]' nested_char_class_regex = re.compile('\[(?:[^\[\]]*\[[^\[\]]*\][^\[\]]*)+[^\[\]]*\]', re.UNICODE) range_regex = re.compile(r'[\\]?([^\\])\-[\\]?([^\\])', re.UNICODE) -var_regex = re.compile('[\s]*\$([A-Za-z_\-]+)[\s]*') +var_regex = re.compile('[\s]*\$([A-Za-z_\-]+[A-Za-z_0-9\-]*)[\s]*') context_regex = re.compile(u'(?:[\s]*(?!=[\s])(.*?)(?