MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / is_end_of_statement

Function is_end_of_statement

src/cluecode/copyrights.py:4316–4324  ·  view source on GitHub ↗

Return True if a line ends with some strings that indicate we are at the end of a statement.

(chars_only_line)

Source from the content-addressed store, hash-verified

4314
4315
4316def is_end_of_statement(chars_only_line):
4317 """
4318 Return True if a line ends with some strings that indicate we are at the end
4319 of a statement.
4320 """
4321 return (
4322 chars_only_line
4323 and chars_only_line.endswith(('rightreserved', 'rightsreserved'))
4324 )
4325
4326
4327remove_non_chars = re.compile(r'[^a-z0-9]', re.IGNORECASE).sub

Callers 1

collect_candidate_linesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected