diff --git a/src/vs/workbench/parts/webview/electron-browser/webview-pre.js b/src/vs/workbench/parts/webview/electron-browser/webview-pre.js index 2afd90241379d..2e1d349ca3f19 100644 --- a/src/vs/workbench/parts/webview/electron-browser/webview-pre.js +++ b/src/vs/workbench/parts/webview/electron-browser/webview-pre.js @@ -216,7 +216,7 @@ defaultStyles.id = '_defaultStyles'; const vars = Object.keys(initData.styles || {}).map(variable => { - return `--${variable}: ${initData.styles[variable].replace(/[^\#\"\'\,\. a-z0-9\-]/gi, '')};`; + return `--${variable}: ${initData.styles[variable].replace(/[^\#\"\'\,\. a-z0-9\-\(\)]/gi, '')};`; }); defaultStyles.innerHTML = ` :root { ${vars.join('\n')} }