Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
if TRACE_TOK:
logger_debug(' get_tokens: bare line: ' + repr(line))

# 🔥 NEW FIX: Skip non-meaningful / unicode-heavy lines
if not any(c.isalpha() for c in line):
continue

# keep or skip empty lines
if not line.strip():
stripped = last_line.lower().strip(string.punctuation)
Expand Down
Loading