parse a port only if there are digits after the colon (see PR8060)

svn: r3097

original commit: 8593839057d244ce79a797e8d2479b262fea99f4
This commit is contained in:
Eli Barzilay 2006-05-28 21:35:23 +00:00
parent 102041d583
commit 001105ab70

View File

@ -362,7 +362,7 @@
"//"
"(?:([^:/@;?#]*)@)?" ; =2 user-at-opt
"([^:/@;?#]*)?" ; =3 host-opt
"(?::([0-9]*))?" ; =4 colon-port-opt
"(?::([0-9]+))?" ; =4 colon-port-opt
")?" ; >B slashslash-opt
")?" ; >A front-opt
"([^?#]*)" ; =5 path