makemessages: Allow excluding whitespace before `*inline` custom tag.

This otherwise throws capitalization error that handlebars are included
in the translated string when trying to use {{~#*inline}}.
This commit is contained in:
Aman Agrawal 2024-07-03 08:10:39 +00:00 committed by Tim Abbott
parent 8bc873c18f
commit 4b091aafc2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ strip_whitespace_left = re.compile(
)
regexes = [
r"{{~?#tr}}([\s\S]*?)(?:~?{{/tr}}|{{#\*inline )", # '.' doesn't match '\n' by default
r"{{~?#tr}}([\s\S]*?)(?:~?{{/tr}}|{{~?#\*inline )", # '.' doesn't match '\n' by default
r'{{~?\s*t "([\s\S]*?)"\W*~?}}',
r"{{~?\s*t '([\s\S]*?)'\W*~?}}",
r'\(t "([\s\S]*?)"\)',