MCPcopy
hub / github.com/ChinaGodMan/UserScripts / extract_locale_key

Function extract_locale_key

utils/script-import-sync.py:61–66  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

59
60# 和谐url 去除特殊字符
61def extract_locale_key(url):
62 if '##' in url:
63 match = re.search(r'##[^\(]*\(([^)]*)\)$', url) or re.search(r'##([^#]*)$', url)
64 else:
65 match = re.search(r'README_(.*?)\.md', url)
66 return match.group(1) if match else None
67
68
69# 复制多语言文档

Callers 1

sync_updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected