Rev | Line | |
---|
[8096] | 1 | From 7e0bb91a11dcc211ca2f08c01b1339ddc1249284 Mon Sep 17 00:00:00 2001 |
---|
| 2 | From: Pierre-Yves Chibon <pingou@pingoured.fr> |
---|
| 3 | Date: Fri, 2 Nov 2012 17:08:47 +0100 |
---|
| 4 | Subject: [PATCH] Fix regex to include the port number when there is one |
---|
| 5 | |
---|
| 6 | --- |
---|
| 7 | src/globals.py.in | 2 +- |
---|
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
---|
| 9 | |
---|
| 10 | diff --git a/src/globals.py.in b/src/globals.py.in |
---|
| 11 | index 002e55a..894db6c 100644 |
---|
| 12 | --- a/src/globals.py.in |
---|
| 13 | +++ b/src/globals.py.in |
---|
| 14 | @@ -41,7 +41,7 @@ USERCHARS = "-[:alnum:]" |
---|
| 15 | PASSCHARS = "-[:alnum:],?;.:/!%$^*&~\"#'" |
---|
| 16 | HOSTCHARS = "-[:alnum:]" |
---|
| 17 | HOST = "[" + HOSTCHARS + "]+(\\.[" + HOSTCHARS + "]+)*" |
---|
| 18 | -PORT = "(:[:digit:]{1,5})?" |
---|
| 19 | +PORT = "(:[[:digit:]]{1,5})?" |
---|
| 20 | PATHCHARS = "-[:alnum:]_$.+!*(),;:@&=?/~#%" |
---|
| 21 | SCHEME = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" |
---|
| 22 | USER = "[" + USERCHARS + "]+(:[" + PASSCHARS + "]+)?" |
---|
| 23 | -- |
---|
| 24 | 1.7.11.7 |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.