JSDOC/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:51:15 +0000 (17:51 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:51:15 +0000 (17:51 +0800)
JSDOC/Packer.vala

index 20b12fb..3292307 100644 (file)
@@ -148,10 +148,11 @@ namespace JSDOC
                    for(var i =0; i < lines.length;i++) {
  
                            var f = lines[i].strip();
-                       if (Regex.match_simple ("^\/", f) ||
+                       if (f.length < 1 ||
+                               Regex.match_simple ("^\/", f) ||
                                !Regex.match_simple ("[a-zA-Z]+", f) 
                        ){
-                               continue; // blank or not starting with a-z
+                               continue; // blank comment or not starting with a-z
                        }
                        
                        if (Regex.match_simple ("\.js$", f)) {
@@ -161,9 +162,9 @@ namespace JSDOC
                        }
                        
                                // this maps Roo.bootstrap.XXX to Roo/bootstrap/xxx.js
+                               // should we prefix? =- or should this be done elsewhere?
                                
-                               
-                       var add = f.replace(".", "/").replace(/\s+/g,'')+'.js';
+                       var add = f.replace(".", "/") + ".js";
                        if (_this.files.indexOf(f) > -1) {
                            return;
                        }