Skip to content

Instantly share code, notes, and snippets.

@vivekteega
Created June 12, 2020 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekteega/1dae65b04831ae6f33b6e634aeb6f078 to your computer and use it in GitHub Desktop.
Save vivekteega/1dae65b04831ae6f33b6e634aeb6f078 to your computer and use it in GitHub Desktop.
Parse plot
function parsePlot(plottext){
var sectionArray = plottext.split('->');
//
return sectionArray;
}
function main(){
var tstr = '<siufifjrioiwjhtwruithwuirhtui>';
var sectionArray = parsePlot(tstr);
for(var i=0; i<sectionArray.length; i++){
craeteSection(sectionArray[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment