Fix runaway regex in translations.develop (#102386)
Co-authored-by: Franck Nijhof <git@frenck.dev>pull/102231/head
parent
8c9c915c45
commit
d5af6c595d
|
@ -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:((?:[a-z0-9-_]+|[:]{2})*)\%\]", value)
|
||||
matches = re.findall(r"\[\%key:([a-z0-9_]+(?:::(?:[a-z0-9-_])+)+)\%\]", value)
|
||||
if not matches:
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue