@@ -29,11 +30,11 @@ function _validateUri(ret: URI): void {
// with two slash characters ("//").
if(ret.path){
if(ret.authority){
if(ret.path.charCodeAt(0)!==CharCode.Slash){
if(!_singleSlashStart.test(ret.path)){
thrownewError('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
// "The userinfo percent-encode set is the path percent-encode set and U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), U+005B ([), U+005C (\), U+005D (]), U+005E (^), and U+007C (|)."
'/v0/b/brewlangerie.appspot.com/o/products/zVNZkudXJyq8bPGTXUxx/Betterave-Sesame.jpg',// INCORRECT: %2F got decoded but for compat reasons we cannot change this anymore...
test('When I click on a link in the terminal, browser opens with a URL which seems to be the link, but run through decodeURIComponent #52211',function(){
assertToString('https://go.microsoft.com/fwlink/?LinkId=518008&foö&ké¥=üü','https://go.microsoft.com/fwlink/?LinkId=518008&fo%C3%B6&k%C3%A9%C2%A5=%C3%BC%C3%BC');// encode umlaute and friends
// normalize things like
assertToString('file:///c:/test/me','file:///c%3A/test/me');// drive letter treatment
// assertToString('https://eu-west-1.console.aws.amazon.com/cloudformation/home\\?region=eu-west-1#/stacks\\?filter=active'); URL makes slash out of backslash