GitMonitor.vala
authorAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 03:30:55 +0000 (11:30 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 03:30:55 +0000 (11:30 +0800)
GitMonitor.vala

index f7efdd2..f5e6fc7 100644 (file)
@@ -70,14 +70,16 @@ public class GitMonitorQueue : MonitorNamePathDir {
                                
                                return true;
                        }
+                       
                        if (this.name[this.name.length -1] == '~') {
                                return true;
                        }
+                       // netbeans / android studio.. silly temp files..
                        
-                       if (f.name.match(/___jb_old___$/)) {
+                       if (Regex.match_simple("___jb_old___$", this.name)) {
                            return true;
                        }
-                       if (f.name.match(/___jb_bak___$/)) {
+                       if (Regex.match_simple("___jb_bak___$", this.name)) {
                            return true;
                        }
                        //if (f.name.match(/^nbproject/)) {