rename matchmake functions

This commit is contained in:
Nathan TeBlunthuis 2021-11-11 19:09:41 -08:00
parent bb83d62b74
commit c437b357db

6
wikiq
View File

@ -429,12 +429,12 @@ class WikiqParser():
else: else:
sys.exit('Each regular expression *must* come with a corresponding label and vice versa.') sys.exit('Each regular expression *must* come with a corresponding label and vice versa.')
def matchmake(self, rev, rev_data): def matchmake_revision(self, rev, rev_data):
rev_data = self.matchmake_revision(rev.text, rev_data) rev_data = self.matchmake_text(rev.text, rev_data)
rev_data = self.matchmake_comment(rev.comment, rev_data) rev_data = self.matchmake_comment(rev.comment, rev_data)
return rev_data return rev_data
def matchmake_revision(self, text, rev_data): def matchmake_text(self, text, rev_data):
return self.matchmake_pairs(text, rev_data, self.regex_revision_pairs) return self.matchmake_pairs(text, rev_data, self.regex_revision_pairs)
def matchmake_comment(self, comment, rev_data): def matchmake_comment(self, comment, rev_data):