* Support for comments pointed out in issue #47

This commit is contained in:
knsv
2014-12-11 19:23:36 +01:00
parent 9aeff6be2d
commit 977df99c80
11 changed files with 424 additions and 274 deletions

View File

@@ -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";