Browse Source

better regexp

master
Julio Biason 15 years ago
parent
commit
535b8f477c
  1. 4
      mitterlib/network/twitter.py

4
mitterlib/network/twitter.py

@ -172,10 +172,10 @@ class TwitterNetworkData(NetworkData):
self.message = _unhtml(data['text'])
# regular expression for users
self.user_regexp = r'@[a-zA-Z0-9_]'
self.user_regexp = r'@\w+'
# regular expression for hashtags
self.tag_regexp = r'#[a-zA-Z0-9_]'
self.tag_regexp = r'#\w+'
return

Loading…
Cancel
Save