angular/angular.js — pull request #2652 by leostera (2013-05-14 06:01:46+00:00)
Title: Respect PORT from URL without escaping

Allows to write a URL normally.

Escaping the port does not comply with the [URL syntax](http://en.wikipedia.org/wiki/Uniform_resource_locator#Syntax)

Regular Expression and it's position in the if clause are meant to short-circuit ASAP.