提交 ab69262a 编写于 作者: M Matt Bierner

Allow rgb css theme colors

Fixes #49978
上级 96e3ed4b
......@@ -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')} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册