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

Function matches_any_pattern

scripts/lint_note.py:1288–1290  ·  view source on GitHub ↗
(text: str, patterns: list[str])

Source from the content-addressed store, hash-verified

1286
1287
1288def matches_any_pattern(text: str, patterns: list[str]) -> bool:
1289 normalized = normalize_lint_whitespace(text)
1290 return any(re.search(pattern, normalized, flags=re.IGNORECASE) for pattern in patterns)
1291
1292
1293def is_placeholder_like(text: str) -> bool:

Callers 2

is_placeholder_likeFunction · 0.85
meaningful_unitsFunction · 0.85

Calls 1

Tested by

no test coverage detected