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

Function _match_key

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

Source from the content-addressed store, hash-verified

268
269
270def _match_key(value: str) -> str:
271 text = normalize_whitespace(value).casefold()
272 text = re.sub(r"[_-]+", " ", text)
273 text = re.sub(r"[^\w\s\u3400-\u9fff]", " ", text, flags=re.UNICODE)
274 return normalize_whitespace(text)
275
276
277def _contains_key(raw_text: str, key: str) -> bool:

Callers 3

_short_acronym_likeFunction · 0.85
_safe_text_keyFunction · 0.85
_contains_keyFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected