MCPcopy Index your code
hub / github.com/plotly/plotly.py / replace_div_id

Function replace_div_id

tests/test_io/test_pathlib.py:54–56  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

52
53
54def replace_div_id(s):
55 uuid = re.search(r'<div id="([^"]*)"', s).groups()[0]
56 return s.replace(uuid, "XXXX")

Callers 1

test_write_htmlFunction · 0.85

Calls 2

groupsMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected