1. Christian Ebert
  2. muttils


Christian Ebert  committed eee1593

urlregex: filter ampersand dupes and terminating punctuation

  • Participants
  • Parent commits 463c676
  • Branches default

Comments (0)

Files changed (1)

File muttils/urlregex.py

View file
  • Ignore whitespace
     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