Changeset 1b0a939ae89553b7f9ec2a3c09bb74d95159ad70
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3d4135a
|
r1b0a939
|
|
| 37 | 37 | # regular expressions to highlight links in terminal. This code was |
| 38 | 38 | # 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" |
| | 39 | USERCHARS = "-[:alnum:]" |
| | 40 | PASSCHARS = "-[:alnum:],?;.:/!%$^*&~\"#'" |
| | 41 | HOSTCHARS = "-[:alnum:]" |
| 42 | 42 | HOST = "[" + HOSTCHARS + "]+(\\.[" + HOSTCHARS + "]+)*" |
| 43 | | PORT = "(:[0-9]{1,5})?" |
| 44 | | PATHCHARS = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%" |
| | 43 | PORT = "(:[:digit:]{1,5})?" |
| | 44 | PATHCHARS = "-[:alnum:]_$.+!*(),;:@&=?/~#%" |
| 45 | 45 | SCHEME = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" |
| 46 | 46 | USER = "[" + USERCHARS + "]+(:[" + PASSCHARS + "]+)?" |