Commits

Josh VanderLinden committed d342d73

Added a couple more delimiters for the URL regex and bumped up the version

  • Participants
  • Parent commits df24b5f
  • Tags 0.5

Comments (0)

Files changed (2)

clip2zeus/clip2zeus.py

 
 from common import *
 
-__version__ = '0.4'
+__version__ = '0.5'
 
 def main():
     clip2zeus = Clip2ZeusApp.for_platform()

clip2zeus/common.py

 import urllib2
 
 APP_TITLE = 'Clip2Zeus'
-URL_RE = re.compile('((\w+)://([^/ \n\r]+)(/?[^ \n\r]*))', re.I | re.M)
+DELIM = ' \n\r<>"\''
+URL_RE = re.compile('((\w+)://([^/%s]+)(/?[^%s]*))' % (DELIM, DELIM), re.I | re.M)
 INVALID_DOMAINS = ('2ze.us', 'bit.ly', 'tinyurl.com', 'tr.im', 'is.gd')
 
 HEARTBEAT_INT = 30 # Interval to ensure we have a connection to 2ze.us (seconds)