Normalize announcement number to group siblings from the same notice.
(dn: str)
| 106 | |
| 107 | |
| 108 | def _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 | |
| 115 | def _build_announcement_url_pool( |
no outgoing calls
no test coverage detected