fix: [tool] slackbot cosmetic change

pull/5560/head
Christophe Vandeplas 2020-04-13 22:25:44 +02:00
parent a78b6dc856
commit fb26771e6c
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ def sanitize_value(s):
s = s.replace('http', 'hxxp')
s = s.replace('.', '[.]')
s = s.replace('@', '[AT]')
s = s.replace('\n', ' ')
# truncate long strings
return (s[:max_value_len] + '..') if len(s) > max_value_len else s