Changeset 1b0a939ae89553b7f9ec2a3c09bb74d95159ad70

Show
Ignore:
Timestamp:
06/17/09 19:55:46 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
86d1a914d69f86c72283aa786f2549a7f20c6519
Parents:
87dfb3e7902479f768bc9025f554cbfb88792940
git-author:
Priit Laes <plaes@…> (06/13/09 17:30:33)
git-committer:
Lincoln de Sousa <lincoln@…> (06/17/09 19:55:46)
Message:

Update regexp to use character classes instead of a-z.

a-z is not working as expected for locales like Estonian (et_EE).

Signed-off-by: Priit Laes <plaes@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake_globals.py.in

    r3d4135a r1b0a939  
    3737# regular expressions to highlight links in terminal. This code was 
    3838# lovely stolen from the great gnome-terminal project, thank you =) 
    39 USERCHARS = "-A-Za-z0-9" 
    40 PASSCHARS = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" 
    41 HOSTCHARS = "-A-Za-z0-9" 
     39USERCHARS = "-[:alnum:]" 
     40PASSCHARS = "-[:alnum:],?;.:/!%$^*&~\"#'" 
     41HOSTCHARS = "-[:alnum:]" 
    4242HOST      = "[" + HOSTCHARS + "]+(\\.[" + HOSTCHARS + "]+)*" 
    43 PORT      = "(:[0-9]{1,5})?" 
    44 PATHCHARS =  "-A-Za-z0-9_$.+!*(),;:@&=?/~#%" 
     43PORT      = "(:[:digit:]{1,5})?" 
     44PATHCHARS =  "-[:alnum:]_$.+!*(),;:@&=?/~#%" 
    4545SCHEME    = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" 
    4646USER      = "[" + USERCHARS + "]+(:[" + PASSCHARS + "]+)?"