MCPcopy Index your code
hub / github.com/microsoft/playwright-python / resolve_glob_to_regex_pattern

Function resolve_glob_to_regex_pattern

playwright/_impl/_helper.py:172–178  ·  view source on GitHub ↗
(
    base_url: Optional[str], glob: str, websocket_url: bool = None
)

Source from the content-addressed store, hash-verified

170
171
172def resolve_glob_to_regex_pattern(
173 base_url: Optional[str], glob: str, websocket_url: bool = None
174) -> str:
175 if websocket_url:
176 base_url = to_websocket_base_url(base_url)
177 glob = resolve_glob_base(base_url, glob)
178 return glob_to_regex_pattern(glob)
179
180
181def to_websocket_base_url(base_url: Optional[str]) -> Optional[str]:

Callers 1

url_matchesFunction · 0.85

Calls 3

glob_to_regex_patternFunction · 0.90
to_websocket_base_urlFunction · 0.85
resolve_glob_baseFunction · 0.85

Tested by

no test coverage detected