aboutcode-org / aboutcode-org/scancode-toolkit

Emails are only reported once

Đang mở
#2,444 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug email and url scan
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

When scanning the following text, the detection of `daniel@haxx.se` is only returned once in the results while it appears multiple times in the file.

`scancode -ce --json-pp -`

```
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: curl
Source: http://curl.haxx.se

Files: *
Copyright: 1996-2015, Daniel Stenberg
License: curl

Files: lib/vtls/axtls.*
Copyright: 2010, DirecTV
2010-2015, Daniel Stenberg
License: curl

Files: lib/vtls/darwinssl.*
Copyright: 2012-2014, Nick Zitzmann
2012-2015, Daniel Stenberg
License: curl

Files: lib/curl_rtmp.*
Copyright: 2010, Howard Chu
License: curl

Files: lib/vtls/schannel.*
Copyright: 2012-2014, Marc Hoersken
2012, Mark Salisbury
2012-2015, Daniel Stenberg
License: curl
```

Results:

```json
"emails": [
{
"email": "daniel@haxx.se",
"start_line": 6,
"end_line": 6
},
{
"email": "nickzman@gmail.com",
"start_line": 15,
"end_line": 15
},
{
"email": "hyc@highlandsun.com",
"start_line": 20,
"end_line": 20
},
{
"email": "info@marc-hoersken.de",
"start_line": 24,
"end_line": 24
},
{
"email": "mark.salisbury@hp.com",
"start_line": 25,
"end_line": 25
}
],
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.