From 48d917c684940769c8683c07e3ad93923e792bab Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 13 Oct 2022 23:19:30 +1300 Subject: [PATCH] fix: Parse boilerplate with revised BSD license --- id2xml/parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/id2xml/parser.py b/id2xml/parser.py index 9465aec2cf..5ce26a05a0 100644 --- a/id2xml/parser.py +++ b/id2xml/parser.py @@ -1774,7 +1774,10 @@ def read_copyright(self, date): self.skip(boilerplate['base_copyright_body']) text = self.next_text() if text and text.startswith(boilerplate['ipr_200902_copyright_ietfbody'][:32]): - self.skip(boilerplate['ipr_200902_copyright_ietfbody']) + if 'Revised BSD' in text: + self.skip(boilerplate['ipr_200902_copyright_ietfbody'].replace('Simplified', 'Revised')) + else: + self.skip(boilerplate['ipr_200902_copyright_ietfbody']) text = self.next_text() if text and text.startswith(boilerplate['ipr_pre5378Trust200902_copyright'][:32]): self.skip(boilerplate['ipr_pre5378Trust200902_copyright'])