Skip to content

Commit e6343f6

Browse files
committed
Add an ignore regex expression for the footer, so date, version and contact information changes doesn't trigger diffs
- Legacy-Id: 711
1 parent c050191 commit e6343f6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ def doUrlsTest(self, lst):
304304
else:
305305
testtext = reduce_text(response.content)
306306
goodtext = reduce_text(goodhtml)
307+
# Always ignore some stuff
308+
for regex in module.ignores["always"]:
309+
testtext = re.sub(regex, "", testtext)
310+
goodtext = re.sub(regex, "", goodtext)
307311
if "ignore" in codes:
308312
ignores = codes["ignore"].split("/")
309313
for ignore in ignores:

test/ignore/always/footer.regex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Made with django *v\d+\.\d+, (Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d+ (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) 20\d\d - web[-a-z]+@ietf.org

0 commit comments

Comments
 (0)