1. Christian Ebert
  2. muttils

Commits

Christian Ebert  committed f4865ab

urlregex: add asia and xxx generic domains

  • Participants
  • Parent commits 6e2a6aa
  • Branches default

Comments (0)

Files changed (1)

File muttils/urlregex.py

View file
  • Ignore whitespace
     for all top level domains or just generic domains.'''
     domainlabel = r'[a-z0-9]+([-a-z0-9]+[a-z0-9])?'
     # generic domains
-    generics = ['aero', 'arpa', 'biz', 'cat', 'com', 'coop',
+    generics = ['aero', 'arpa', 'asia', 'biz', 'cat', 'com', 'coop',
                 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum',
-                'name', 'net', 'org', 'pro', 'root', 'travel']
+                'name', 'net', 'org', 'pro', 'root', 'travel', 'xxx']
     # top level domains
     tops = generics + ['a[cdefgilmnoqrstuwz]', 'b[abdefghijmnorstvwyz]',
                        'c[acdfghiklmnoruvxyz]', 'd[ejkmoz]', 'e[ceghrstu]',