mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
5 lines
132 B
Python
5 lines
132 B
Python
def cap_text_length(text: str, max_length: int) -> str:
|
|
if len(text) > max_length:
|
|
return text[:max_length] + '...'
|
|
return text
|