diff --git a/weblate/checks/placeholders.py b/weblate/checks/placeholders.py index e67171355a61..26cd233b9166 100644 --- a/weblate/checks/placeholders.py +++ b/weblate/checks/placeholders.py @@ -46,7 +46,7 @@ def get_value(self, unit: Unit): @staticmethod def get_matches(value, text: str): - for match in value.finditer(text): + for match in value.finditer(text, concurrent=True): yield match.group() def diff_case_sensitive(self, expected, found): @@ -159,7 +159,7 @@ def check_highlight(self, source: str, unit: Unit): regex = self.get_value(unit) - for match in regex.finditer(source): + for match in regex.finditer(source, concurrent=True): yield (match.start(), match.end(), match.group()) def get_description(self, check_obj):