Skip to content

Commit

Permalink
Resolving issue itsToggle#638
Browse files Browse the repository at this point in the history
  • Loading branch information
sirstudly committed Mar 30, 2024
1 parent a7c3efb commit fbd83ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def deviation(self, year=""):
title = title.replace('.' + str(self.year), '')
if year != "":
return '[^A-Za-z0-9]*(' + title + ':?.)\(?\[?(' + str(year) + ')'
return '[^A-Za-z0-9]*(' + title + ':?.)\(?\[?(' + str(self.year) + '|' + str(self.year - 1) + '|' + str(self.year + 1) + ')'
return '[^A-Za-z0-9]*(' + title + ':?.*)\(?\[?(' + str(self.year) + '|' + str(self.year - 1) + '|' + str(self.year + 1) + ')'
else:
title = title.replace('.' + str(self.year), '')
return '[^A-Za-z0-9]*(' + title + ')'
Expand Down

0 comments on commit fbd83ed

Please sign in to comment.