Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug report
  • Loading branch information
Klaus Thoden committed Aug 14, 2018
1 parent cd696a0 commit 735a675
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fix_tei.py
Expand Up @@ -106,6 +106,7 @@ def convert_citations(string):
"""
citations = []

# BUG: a dot as in 197f. is not recognized!
year_citations_pattern = re.compile(r"(§|&#xA7;|&#167;)(§|&#xA7;|&#167;)(?P<citekey>.+?)(\!(?P<pages>.*?))?(§|&#xA7;|&#167;)(§|&#xA7;|&#167;)")
year_citations = re.findall(year_citations_pattern, string)
logging.info("Found %s year citations." % len(year_citations))
Expand Down

0 comments on commit 735a675

Please sign in to comment.