This website works better with JavaScript
Home
Explore
Help
Sign In
LiuFan
/
PrivacyScanData
Watch
1
Star
0
Fork
0
Files
Issues
0
Pull Requests
0
Wiki
Tree:
477aca1605
Branches
Tags
dev-lf
lsn
master
PrivacyScanD...
/
target
/
truncate
/
truncate_2_1.py
truncate_2_1.py
105 B
History
Raw
1
2
def truncate(str, limit, ellipsis='...'):
return str[:limit] + ellipsis if len(str) > limit else str