Skip to content

Commit a1d24e5

Browse files
authored
Revert "Improve regex to handle nested comments more efficiently (#1164)"
This reverts commit c53d0c8.
1 parent c53d0c8 commit a1d24e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class HttpClient implements IHttpClient {
173173
if (typeof body === 'string') {
174174
// Remove any extra characters that appear before or after the SOAP envelope.
175175
const regex = /(?:<\?[^?]*\?>[\s]*)?<([^:]*):Envelope([\S\s]*)<\/\1:Envelope>/i;
176-
const match = body.replace(/<!--(?:(?!<!--[\s\S])*?)-->/, '').match(regex);
176+
const match = body.replace(/<!--[\s\S]*?-->/, '').match(regex);
177177
if (match) {
178178
body = match[0];
179179
}

0 commit comments

Comments
 (0)