36
// with two slash characters ("//").
37
if (ret.path) {
38
>
if (ret.authority) {
uri.ts
39
if (!_singleSlashStart.test(ret.path)) {
40
throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
41
}
43
if (_doubleSlashStart.test(ret.path)) {
44
throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
45
}
46
}
48
}
49