// ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
if (ret.scheme && !_schemePattern.test(ret.scheme)) {
const detail = matches.length > 0
? ` Found '${matches[0][0]}' at index ${matches[0].index} (${matches.length} total)`
: '';
throw new Error(`[UriError]: Scheme contains illegal characters.${detail} (len:${ret.scheme.length})`);
uri.ts
}
// path, http://tools.ietf.org/html/rfc3986#section-3.3