Skip to content

Commit

Permalink
fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
matejsuchanek committed Sep 12, 2023
1 parent 810542e commit e57f15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clean_commonscat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def setup(self):
ns = '|'.join(self.site.namespaces[14])
self.empty_sectionR = re.compile(
r'\s*\n==+ *Externí odkazy *==+ *\n\s*'
fr'(?:^==|^\{\{(?:{templates})|^\[\[(?:{ns}):)', flags=re.M)
r'^(?:==|\{\{(?:{templates})|\[\[(?:{ns}):)'
.format(templates=templates, ns=ns),
flags=re.M)

def treat_page(self): # todo: treat_page_and_item
page = self.current_page
Expand Down

0 comments on commit e57f15b

Please sign in to comment.