We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f17d50 commit 15589b0Copy full SHA for 15589b0
webview-ui/src/utils/diffUtils.ts
@@ -55,11 +55,11 @@ function isSearchReplace(s: string): boolean {
55
function stripCData(s: string): string {
56
return (
57
s
58
- // HTML-encoded CDATA open -> raw, then strip raw
59
- .replace(/<!\[CDATA\[/g, "<![CDATA[")
+ // Remove HTML-encoded and raw CDATA open
+ .replace(/<!\[CDATA\[/gi, "")
60
.replace(/<!\[CDATA\[/g, "")
61
- // HTML-encoded CDATA close -> raw, then strip raw
62
- .replace(/\]\]>/g, "]]>")
+ // Remove HTML-encoded and raw CDATA close
+ .replace(/\]\]>/gi, "")
63
.replace(/\]\]>/g, "")
64
)
65
}
0 commit comments