MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _safe_text_key

Function _safe_text_key

scripts/citation_links.py:222–228  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

220
221
222def _safe_text_key(value: str) -> str:
223 key = normalize_whitespace(value)
224 if not key or _short_acronym_like(key):
225 return ""
226 if len(re.sub(r"\s+", "", _match_key(key))) < 8:
227 return ""
228 return key
229
230
231def _dedupe_values(values: list[str]) -> list[str]:

Callers 1

_note_text_keysFunction · 0.85

Calls 3

normalize_whitespaceFunction · 0.90
_short_acronym_likeFunction · 0.85
_match_keyFunction · 0.85

Tested by

no test coverage detected