MCPcopy Create free account
hub / github.com/microsoft/playwright-python / map_token

Function map_token

playwright/_impl/_helper.py:193–197  ·  view source on GitHub ↗
(original: str, replacement: str)

Source from the content-addressed store, hash-verified

191 token_map: Dict[str, str] = {}
192
193 def map_token(original: str, replacement: str) -> str:
194 if len(original) == 0:
195 return ""
196 token_map[replacement] = original
197 return replacement
198
199 # Escaped `\\?` behaves the same as `?` in our glob patterns.
200 match = match.replace(r"\\?", "?")

Callers 1

resolve_glob_baseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected