Skip to content

Commit 4715eb6

Browse files
committed
fix author extraction
Reference: aboutcode-org#4229 Signed-off-by: Alok Kumar <[email protected]>
1 parent 4b57a7f commit 4715eb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cluecode/copyrights.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ def detect(self,
389389
yield author
390390

391391

392-
def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
392+
def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;:]+').split):
393393
"""
394394
Return an iterable of pygmars.Token built from a ``numbered_lines`` iterable
395395
of tuples of (line number, text).
396396
397-
We perform a simple tokenization on spaces, tabs and some punctuation: =;
397+
We perform a simple tokenization on spaces, tabs and some punctuation: =;:
398398
"""
399399
last_line = ""
400400
for start_line, line in numbered_lines:
@@ -3426,8 +3426,8 @@ def build_detection_from_node(
34263426
# by Yukihiro Matsumoto [email protected].
34273427
# AUTH: {<BY> <NAME>} #2645-3
34283428
3429-
# @author [email protected] (Anatol Pomazau)
3430-
AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|YR-RANGE>* <BY>? <EMAIL>+ <NAME>?} #2650
3429+
# @author [email protected] (Anatol Pomazau) or Author:Frankie.Chu
3430+
AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|YR-RANGE>* <BY>? <EMAIL>? <NAME>?} #2650
34313431
34323432
# developed by the National Center for Supercomputing Applications at the University of Illinois at Urbana-Champaign
34333433
AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|NAME-EMAIL|NAME-YEAR>+ <NN>? <COMPANY|NAME|NAME-EMAIL|NAME-YEAR>+ <YR-RANGE>*} #2660

0 commit comments

Comments
 (0)