Fix regular expression for rewriting iframe webview html replacing quotes
This commit is contained in:
parent
8c8f79dcef
commit
a77402669c
|
@ -172,7 +172,7 @@ export class IFrameWebview extends Disposable implements Webview {
|
|||
}
|
||||
|
||||
private preprocessHtml(value: string): string {
|
||||
return value.replace(/(?:["'])vscode-resource:([^\s'"]+)(?:["'])/gi, '/vscode-resource$1');
|
||||
return value.replace(/(?<=["'])vscode-resource:([^\s'"]+)(?=["'])/gi, '/vscode-resource$1');
|
||||
}
|
||||
|
||||
public update(html: string, options: WebviewContentOptions, retainContextWhenHidden: boolean) {
|
||||
|
|
Loading…
Reference in a new issue