Skip to content

Commit

Permalink
fix bug in host extraction when url contains port number
Browse files Browse the repository at this point in the history
When the url contained a port number, the logic was accidentally
including the port number when it extracted the hostname from
the url.

Signed-off-by: Martin Carroll <[email protected]>
  • Loading branch information
Martin Carroll committed Aug 11, 2016
1 parent fdee4d6 commit d0a2186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymod/pacparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import re
import sys

_URL_REGEX = re.compile('^[^:]*:\/\/([^\/]+)')
_URL_REGEX = re.compile('^[^:]*:\/\/([^\/:]+)')

class URLError(Exception):
def __init__(self, url):
Expand Down

0 comments on commit d0a2186

Please sign in to comment.