mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 18:24:33 +01: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++) {
|
for (let i = 0; i < kArr.length; i++) {
|
||||||
const k = kArr[i];
|
const k = kArr[i];
|
||||||
const val = args.themeVariables[k];
|
const val = args.themeVariables[k];
|
||||||
if (!val.match(/^[a-zA-Z0-9#;]+$/)) {
|
if (!val.match(/^[a-zA-Z0-9#,";()%. ]+$/)) {
|
||||||
args.themeVariables[k] = '';
|
args.themeVariables[k] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user