Skip to content

Commit 64212ff

Browse files
Merge pull request fossology#3212 from SalmanDeveloperz/fix/issue-317-url-characters
fix: exclude invalid characters from URL regex in copyright agent Reviewed-by: shaheem.azmal@siemens.com Tested-by: shaheem.azmal@siemens.com
2 parents 792818e + a4005de commit 64212ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/copyright/agent/copyright.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: FSFAP
66
#
77
# Description: this file holds the regex configurations for the Copyright agent
8-
url=(?:(:?ht|f)tps?\:\/\/[^\s\<]+[^\<\.\,\s])
8+
url=(?:(?:ht|f)tps?://[^\s<>\"'`\[\]{}\\|\^]+?)(?=[\s<>\"'`\[\]{}\\]|$)
99
EMAILPART=[\w\-\.\+]{1,100}
1010
TLD=[a-zA-Z]{2,12}(?<!test)(?<!invalid)
1111
email=[\<\(]?(__EMAILPART__@__EMAILPART__\.__TLD__)(?<!example\.(com|net|org))[\>\)]?

0 commit comments

Comments
 (0)