Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/playwright-python
/ trim_end
Function
trim_end
playwright/_impl/_page.py:1626–1629 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
1624
1625
1626
def
trim_end(s: str) -> str:
1627
if
len(s) > 50:
1628
return
s[:50] +
"\u2026"
1629
return
s
Callers
1
trim_url
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected