MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _rewrite_url

Function _rewrite_url

SLiCAP/schematic/export.py:507–508  ·  view source on GitHub ↗
(val: str)

Source from the content-addressed store, hash-verified

505 xhref = f"{{{_XLINK_NS}}}href"
506
507 def _rewrite_url(val: str) -> str:
508 return _URL_REF_RE.sub(lambda m: f"url(#{prefix}{m.group(1)})", val)
509
510 for el in element.iter():
511 id_val = el.get("id")

Callers 1

_rename_svg_idsFunction · 0.85

Calls 1

groupMethod · 0.80

Tested by

no test coverage detected