Skip to content

Commit

Permalink
Remove input
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertbossot committed Aug 15, 2024
1 parent ccc0293 commit 3d14c55
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/wiktionary/fr_wiktionary_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,6 @@ def add_language_code_with_named_parameter_to_template(
if page_content.find('}}') > page_content.find('{{') != -1:
# TODO Infinite loop in [[tomme]] with ^date\|[^{}]*({{(.*?)}}|.)+[^{}]*\|lang=
regex_has_subtemplate = r'^' + re.escape(current_template) + r'\|[^{}]*({{(.*?)}}|.)+[^{}]*\| *lang(?:ue|1)? *='
input(regex_has_subtemplate)
if re.search(regex_has_subtemplate, page_content):
has_subtemplate_included = True

Expand Down

0 comments on commit 3d14c55

Please sign in to comment.