From a1d24e50241abf352d34c0e392c55371a6fe09cf Mon Sep 17 00:00:00 2001 From: Vasily Martynov Date: Tue, 8 Oct 2024 21:41:55 +1300 Subject: [PATCH] Revert "Improve regex to handle nested comments more efficiently (#1164)" This reverts commit c53d0c84f6c2d50310688739d9767b8892c48711. --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }