An error occurs when url type has localhost with port

Because url regular expression is broken.
The regular expression matched only 'localhost' followed by '/'.