mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Adding case check
This commit is contained in:
parent
61af74609a
commit
4c26fe224b
@ -321,6 +321,9 @@ export const insertNode = async (elem, node, renderOptions) => {
|
||||
if (!shapes[node.shape]) {
|
||||
throw new Error(`No such shape: ${node.shape}. Please check your syntax.`);
|
||||
}
|
||||
if (node.shape !== node.shape.toLowerCase()) {
|
||||
throw new Error(`No such shape: ${node.shape}. Shape names should be lowercase.`);
|
||||
}
|
||||
if (node.link) {
|
||||
// Add link when appropriate
|
||||
let target;
|
||||
|
Loading…
x
Reference in New Issue
Block a user