MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / normalize_text

Function normalize_text

vulnerabilities/utils.py:612–614  ·  view source on GitHub ↗

Normalize text by removing whitespace and converting to lowercase.

(text)

Source from the content-addressed store, hash-verified

610
611
612def normalize_text(text):
613 """Normalize text by removing whitespace and converting to lowercase."""
614 return "".join(text.split()).lower() if text else ""
615
616
617def normalize_list(lst):

Callers 3

merged_advisoryFunction · 0.90
compute_content_idFunction · 0.85
compute_content_id_v2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected