From 0c75e178ecf04d571d041a70f565ae0000245530 Mon Sep 17 00:00:00 2001 From: Ken Beck Date: Thu, 11 Jul 2019 13:11:50 -0500 Subject: [PATCH] Adjusts URL detection to be case insensitive Per [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3.1), the URL schema (e.g., http:, https:) should be case insensitive. This PR adjusts the URL detection regex to ensure that capitalized schemas (e.g., HTTP, HTTPS) are supported. --- src/wsdl/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wsdl/index.ts b/src/wsdl/index.ts index dcf4989a5..b47148be3 100644 --- a/src/wsdl/index.ts +++ b/src/wsdl/index.ts @@ -1169,7 +1169,7 @@ export class WSDL { } let includePath: string; - if (!/^https?:/.test(this.uri) && !/^https?:/.test(include.location)) { + if (!/^https?:/i.test(this.uri) && !/^https?:/i.test(include.location)) { includePath = path.resolve(path.dirname(this.uri), include.location); } else { includePath = url.resolve(this.uri || '', include.location);