MCPcopy Index your code
hub / github.com/ChinaGodMan/UserScripts / replace_links

Function replace_links

utils/fix_toc.py:30–33  ·  view source on GitHub ↗
(match, template)

Source from the content-addressed store, hash-verified

28
29
30def replace_links(match, template):
31 original_link = match.group(1)
32 updated_link = original_link.replace(" ", "-")
33 return template.format(updated_link, *match.groups()[1:])
34
35
36def modify_path(path):

Callers 1

fix_toc.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected