mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Merge branch 'feat/1952-state--classDef-documentation' of github.com:weedySeaDragon/mermaid into feat/1952-state--classDef-documentation
Conflicts: docs/syntax/stateDiagram.md packages/mermaid/src/diagrams/pie/pieDetector.ts packages/mermaid/src/docs/syntax/stateDiagram.md
This commit is contained in:
commit
338d83d4a5
@ -1,5 +1,6 @@
|
||||
import type { DiagramDetector } from '../../diagram-api/types';
|
||||
|
||||
export const pieDetector: DiagramDetector = (txt) => {
|
||||
return txt.match(/^\s*pie/) !== null;
|
||||
const logOutput = txt.match(/^\s*pie/) !== null || txt.match(/^\s*bar/) !== null;
|
||||
return logOutput;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user