Skip to content

Commit 9e0ce3f

Browse files
committed
fix test failure
no need to remove single plus sign Signed-off-by: Alok Kumar <alokkumarjipura9973@gmail.com>
1 parent 8ffa3bf commit 9e0ce3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluecode/copyrights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
438438
)
439439

440440
# remove leading plus sign
441-
if tok.startswith('+'):
441+
if tok.startswith('+') and len(tok) > 1:
442442
tok = tok.lstrip('+')
443443
# convert 'AUTHOR' to ('author' or 'Author')
444444
if tok == 'AUTHOR':

0 commit comments

Comments
 (0)