MCPcopy
hub / github.com/chinesehuazhou/python-weekly / extract_issue_title

Function extract_issue_title

resources/weekly_workflow.py:67–74  ·  view source on GitHub ↗

提取周刊标题冒号后的主题部分

(full_title)

Source from the content-addressed store, hash-verified

65 return chinese_text.strip(), english_text.strip() or None
66
67def extract_issue_title(full_title):
68 """提取周刊标题冒号后的主题部分"""
69 if not full_title:
70 return ''
71 for sep in (':', ':'):
72 if sep in full_title:
73 return full_title.split(sep, 1)[1].strip()
74 return full_title.strip()
75
76def build_english_weekly_title(full_title, weekly_no):
77 """基于 `中文---English` 主标题约定构造英文周刊标题"""

Callers 2

update_readmeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected