MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _normalize_doc_number

Function _normalize_doc_number

scripts/fetch_nmpa_fulltext.py:108–112  ·  view source on GitHub ↗

Normalize announcement number to group siblings from the same notice.

(dn: str)

Source from the content-addressed store, hash-verified

106
107
108def _normalize_doc_number(dn: str) -> str:
109 """Normalize announcement number to group siblings from the same notice."""
110 dn = re.sub(r'附件\d+', '', dn).strip()
111 dn = re.sub(r'[,、,].*$', '', dn).strip()
112 return dn
113
114
115def _build_announcement_url_pool(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected