Commits

Christian Ebert committed eee1593

urlregex: filter ampersand dupes and terminating punctuation

Comments (0)

Files changed (1)

muttils/urlregex.py

 
     def urlfilter(self):
         '''Filters out urls not in given scheme and duplicates.'''
+        self.items = [i.replace('&', '&') for i in self.items]
+        self.items = [i.rstrip('.!?:;,"\'') for i in self.items]
         filterdict = {'web': _webcheck, 'mailto': mailcheck}
         if not self.ui.decl and self.ui.proto in filterdict:
             self.items = [i for i in self.items