mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 12:14:07 +01:00
* Support for comments pointed out in issue #47
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
/**
|
||||
* Created by knut on 14-11-23.
|
||||
*/
|
||||
module.exports.detectType = function(text){
|
||||
/**
|
||||
* Detects the type of the graph text.
|
||||
* @param {string} text The text defining the graph
|
||||
* @param {string} text The second text defining the graph
|
||||
* @returns {string} A graph definition key
|
||||
*/
|
||||
module.exports.detectType = function(text,a){
|
||||
if(text.match(/^\s*sequenceDiagram/)){
|
||||
console.log('Detected sequenceDiagram syntax');
|
||||
return "sequenceDiagram";
|
||||
|
||||
Reference in New Issue
Block a user