Skip to content

Commit 713a605

Browse files
Fix unknown-spdx detections for dangling markup
Fixes unknown-spdx detections for nuget nuspecs file license detection where a dangling </licenseurl> markup would result in the SPDX license detection not working. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 2629008 commit 713a605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/licensedcode/match_spdx_lid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def clean_text(text):
360360
"""
361361
if is_markup_text(text):
362362
text = demarkup_text(text)
363-
364-
dangling_markup = ['</a>','</p>','</div>']
363+
364+
dangling_markup = ['</a>','</p>','</div>', '</licenseUrl>']
365365
for markup in dangling_markup:
366366
if markup in text:
367367
text = text.replace(markup, '')

0 commit comments

Comments
 (0)