public void loadSourceIndex(string srcfile)
{
- var lines = File.read(srcfile).split("\n");
- var _this = this;
- lines.forEach(function(f) {
-
- if (/^\s*\//.test(f) || !/[a-z]+/i.test(f)) { // skip comments..
- return;
+ string str;
+ FileUtils.get_contents(srcfile,out str);
+
+ var lines = str.split("\n");
+ for(var i =0; i < lines.length;i++) {
+
+ var f = lines[i];
+ if (Regex.match_simple ("^\s*\/", f) ||
+ !Regex.match_simple ("[a-zA-Z]+", f)
+ ){
+ continue; // blank or not starting with a-z
}
if (/\.js$/.test(f)) {
_this.files.push( f);