1 parent cc9fe59 commit a781c75Copy full SHA for a781c75
slack_bot/app.py
@@ -50,7 +50,7 @@ def callback(kwargs, app):
50
if isinstance(s, unicode):
51
s = s.encode('utf-8')
52
# remove metion block
53
- s = re.sub(r'(@.*)\W', '', s)
+ s = re.sub(r'(@.*?)\W', '', s)
54
private = any([word in s for word in ['private', '私聊']])
55
attachmented = any([word in s for word in ['带图', '附件']])
56
data = {
0 commit comments