Skip to content

Commit 40eff3c

Browse files
committed
remove leading plus sign
1 parent 66dba8f commit 40eff3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cluecode/copyrights.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
429429
# strip trailing quotes+comma
430430
if tok.endswith("',"):
431431
tok = tok.rstrip("',")
432+
433+
# remove leading plus sign
434+
if tok.startswith('+'):
435+
tok = tok.lstrip('+')
432436

433437
tok = (
434438
tok
@@ -2028,6 +2032,7 @@ def build_detection_from_node(
20282032
# "authors" or "contributors" is interesting, and so a tag of its own
20292033
(r'^[Aa]uthors,$', 'AUTHDOT'),
20302034
(r'^[Aa]uthor$', 'AUTH'),
2035+
(r'^AUTHOR$', 'AUTH'),
20312036
(r'^[Aa]uthor\.$', 'AUTHDOT'),
20322037
(r'^[Aa]uthors?\.$', 'AUTHDOT'),
20332038
(r'^([Aa]uthors|author\')$', 'AUTHS'),

0 commit comments

Comments
 (0)