File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -440,13 +440,12 @@ def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
440
440
# Split tokens like 'Author:Frankie.Chu' into 'Author' and 'Frankie.Chu'
441
441
if tok .startswith ("Author:" ):
442
442
parts = tok .split (":" , 1 )
443
- if len (parts ) == 2 :
444
- for part in parts :
445
- part = part .strip ()
446
- if part and part not in ':.' :
447
- yield Token (value = part , start_line = start_line , pos = pos )
448
- pos += 1
449
- continue
443
+ for part in parts :
444
+ part = part .strip ()
445
+ if part and part not in ':.' :
446
+ yield Token (value = part , start_line = start_line , pos = pos )
447
+ pos += 1
448
+ continue
450
449
451
450
# the tokenizer allows a single colon or dot to be a token and we discard these
452
451
if tok and tok not in ':.' :
@@ -3438,7 +3437,7 @@ def build_detection_from_node(
3438
3437
# AUTH: {<BY> <NAME>} #2645-3
3439
3438
3440
3439
# @author anatol@google.com (Anatol Pomazau)
3441
- AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|YR-RANGE>* <BY>? <EMAIL>+ <NAME>?} #2650
3440
+ AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|YR-RANGE>* <BY>? <EMAIL>+ <NAME>?} #2650
3442
3441
3443
3442
# developed by the National Center for Supercomputing Applications at the University of Illinois at Urbana-Champaign
3444
3443
AUTHOR: {<AUTH|CONTRIBUTORS|AUTHS>+ <NN>? <COMPANY|NAME|NAME-EMAIL|NAME-YEAR>+ <NN>? <COMPANY|NAME|NAME-EMAIL|NAME-YEAR>+ <YR-RANGE>*} #2660
You can’t perform that action at this time.
0 commit comments