mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 06:20:07 +02:00
Updated allowed characters to accomodate fonts and rgba colors
This commit is contained in:
@@ -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] = '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user