Skip to content

Commit c442a3e

Browse files
committed
fix author extraction
Reference: aboutcode-org#4229
1 parent 4b57a7f commit c442a3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cluecode/copyrights.py

+4-4
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 matz@netlab.co.jp.
34273427
# AUTH: {<BY> <NAME>} #2645-3
34283428
3429-
# @author anatol@google.com (Anatol Pomazau)
3430-
AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|YR-RANGE>* <BY>? <EMAIL>+ <NAME>?} #2650
3429+
# @author anatol@google.com (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)