Updated allowed characters to accomodate fonts and rgba colors
This commit is contained in:
parent
610f154c74
commit
2792bb41de
|
@ -1057,7 +1057,7 @@ export const directiveSanitizer = (args) => {
|
|||
for (let i = 0; i < kArr.length; i++) {
|
||||
const k = kArr[i];
|
||||
const val = args.themeVariables[k];
|
||||
if (!val.match(/^[a-zA-Z0-9#;]+$/)) {
|
||||
if (!val.match(/^[a-zA-Z0-9#,";()%. ]+$/)) {
|
||||
args.themeVariables[k] = '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue