Introspect/NameSpace.js
[gnome.introspection-doc-generator] / Introspect / NameSpace.js
index fa0691d..2f4c44c 100644 (file)
@@ -29,7 +29,7 @@ NameSpace = {
             }
             File.list(dir).forEach(function(fn) 
             {
-                if (!fn.match(/.typelib$/)) {
+                if (!fn.match(/\.typelib$/)) {
                     return;
                 }
                 var par = fn.split('-').shift();
@@ -42,7 +42,7 @@ NameSpace = {
         }
         
         var gi = GI.Repository.get_default();
-        var pth = GI.Repository.get_search_path ();
+        var pth = GI.Repository.get_search_path();
         
         scanGir(pth[0]);
         ret.sort();