[gnome-boxes] util-app: Match regex across multiple lines



commit 5d234ef990567f0ac5fea1c80394431a0ba53190
Author: Alain Kalker <a c kalker gmail com>
Date:   Tue May 31 17:59:44 2016 +0200

    util-app: Match regex across multiple lines
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767039

 src/util-app.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index f2625aa..8445503 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -174,7 +174,7 @@ namespace Boxes {
                 file.load_contents (null, out contents, null);
             }
 
-            libvirt_bridge_net_available = (Regex.match_simple ("^allow.*virbr0", (string) contents));
+            libvirt_bridge_net_available = (Regex.match_simple ("(?m)^allow.*virbr0", (string) contents));
         } catch (GLib.Error error) {
             debug ("%s", error.message);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]