Fix incorrect regex in translation script (#91536)
This commit is contained in:
parent
5c7d124f02
commit
d1b8f2987c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ def substitute_translation_references(integration_strings, flattened_translation
|
|||
|
||||
def substitute_reference(value, flattened_translations):
|
||||
"""Substitute localization key references in a translation string."""
|
||||
matches = re.findall(r"\[\%key:((?:[\w]+|[:]{2})*)\%\]", value)
|
||||
matches = re.findall(r"\[\%key:((?:[a-z0-9-_]+|[:]{2})*)\%\]", value)
|
||||
if not matches:
|
||||
return value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue