We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07c01a3 commit b8c96abCopy full SHA for b8c96ab
utils/wall.py
@@ -168,7 +168,7 @@ def text(t):
168
start, end = url['indices']
169
t['text'] = t['text'][0:start] + a + t['text'][end:]
170
171
- t['text'] = re.sub(' @([^ ]+)', r' <a href="https://twitter.com/\g<1>">@\g<1></a>', t['text'])
+ t['text'] = re.sub('@([A-Za-z0-9_]+)', r'<a href="https://twitter.com/\g<1>">@\g<1></a>', t['text'])
172
t['text'] = re.sub(' #([^ ]+)', r' <a href="https://twitter.com/search?q=%23\g<1>&src=hash">#\g<1></a>', t['text'])
173
174
html = """
0 commit comments