diff --git a/src/http.ts b/src/http.ts index 1d4b60e0..0ad8431e 100644 --- a/src/http.ts +++ b/src/http.ts @@ -173,7 +173,7 @@ export class HttpClient implements IHttpClient { if (typeof body === 'string') { // Remove any extra characters that appear before or after the SOAP envelope. const regex = /(?:<\?[^?]*\?>[\s]*)?<([^:]*):Envelope([\S\s]*)<\/\1:Envelope>/i; - const match = body.replace(//, '').match(regex); + const match = body.replace(//, '').match(regex); if (match) { body = match[0]; }