Skip to content

Commit 8fb9f47

Browse files
committed
remove extra_phrase marker from rules
due to `extra_phrase` in rules, this shows that rules containing `extra-words` Signed-off-by: Alok Kumar <[email protected]>
1 parent 59a2645 commit 8fb9f47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/licensedcode/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,9 @@ def dump(self, rules_data_dir, **kwargs):
24472447
# other rule metadata, like debugging collection of required phrases
24482448
if kwargs:
24492449
metadata.update(kwargs)
2450-
content = self.text
2450+
2451+
# remove extra_phrase marker
2452+
content = remove_extra_phrase(self.text)
24512453
output = dumps_frontmatter(content=content, metadata=metadata)
24522454
with open(rule_file, 'w') as of:
24532455
of.write(output)

0 commit comments

Comments
 (0)