From 7e0bb91a11dcc211ca2f08c01b1339ddc1249284 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Chibon <pingou@pingoured.fr>
Date: Fri, 2 Nov 2012 17:08:47 +0100
Subject: [PATCH] Fix regex to include the port number when there is one
---
src/globals.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/globals.py.in b/src/globals.py.in
index 002e55a..894db6c 100644
a
|
b
|
USERCHARS = "-[:alnum:]" |
41 | 41 | PASSCHARS = "-[:alnum:],?;.:/!%$^*&~\"#'" |
42 | 42 | HOSTCHARS = "-[:alnum:]" |
43 | 43 | HOST = "[" + HOSTCHARS + "]+(\\.[" + HOSTCHARS + "]+)*" |
44 | | PORT = "(:[:digit:]{1,5})?" |
| 44 | PORT = "(:[[:digit:]]{1,5})?" |
45 | 45 | PATHCHARS = "-[:alnum:]_$.+!*(),;:@&=?/~#%" |
46 | 46 | SCHEME = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" |
47 | 47 | USER = "[" + USERCHARS + "]+(:[" + PASSCHARS + "]+)?" |