MCPcopy Create free account
hub / github.com/Moli-X/Resources / preProcess

Function preProcess

Script/Parser.js:3527–3550  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

3525 }
3526
3527 function preProcess(src) {
3528 var m;
3529 var lines = src.split("\n");
3530
3531 var r = regex["comment"];
3532
3533 for(var i in lines) {
3534 if(m = lines[i].match(r)) {
3535/* var cmt = "";
3536 if(typeof m[3] != "undefined")
3537 lines[i] = m[1];
3538 else if(typeof m[3] != "undefined")
3539 lines[i] = m[3];
3540 else
3541 lines[i] = "";
3542 */
3543 if(typeof m[3] !== "undefined") {
3544 lines[i] = m[0].substr(0, m[0].length - m[3].length);
3545 }
3546 }
3547 }
3548
3549 return lines.join("\n");
3550 }
3551
3552 this.parse = function eval0(str) {
3553 errors = [];

Callers 1

YAMLFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected