0001-Fix-regex-to-include-the-port-number-when-there-is-o.patch 866 B

12345678910111213141516171819202122232425
  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. src/globals.py.in | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/src/globals.py.in b/src/globals.py.in
  9. index 002e55a..894db6c 100644
  10. --- a/src/globals.py.in
  11. +++ b/src/globals.py.in
  12. @@ -41,7 +41,7 @@ USERCHARS = "-[:alnum:]"
  13. PASSCHARS = "-[:alnum:],?;.:/!%$^*&~\"#'"
  14. HOSTCHARS = "-[:alnum:]"
  15. HOST = "[" + HOSTCHARS + "]+(\\.[" + HOSTCHARS + "]+)*"
  16. -PORT = "(:[:digit:]{1,5})?"
  17. +PORT = "(:[[:digit:]]{1,5})?"
  18. PATHCHARS = "-[:alnum:]_$.+!*(),;:@&=?/~#%"
  19. SCHEME = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)"
  20. USER = "[" + USERCHARS + "]+(:[" + PASSCHARS + "]+)?"
  21. --
  22. 1.7.11.7