Better text handling for flowcharts

This commit is contained in:
knsv
2014-11-25 18:58:47 +01:00
parent d18103a0ec
commit 2317ea5117
14 changed files with 548 additions and 250 deletions

11
src/utils.js Normal file
View File

@@ -0,0 +1,11 @@
/**
* Created by knut on 14-11-23.
*/
module.exports.detectType = function(text){
if(text.match(/^\s*sequence/)){
return "sequence";
}
else{
return "graph";
}
}