]> git.saurik.com Git - cydia.git/commitdiff
Split addMessageToConsole: filter onto multiple lines.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 5 Mar 2011 12:57:46 +0000 (04:57 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:37 +0000 (02:41 -0800)
CyteKit/WebViewController.mm

index 8b82229a1e59f8927898883bc63bc36a78776bcb..08839728ee15fc75734b8dc99f723b24fbe5f4a8 100644 (file)
@@ -401,7 +401,11 @@ float CYScrollViewDecelerationRateNormal;
 // CyteWebViewDelegate {{{
 - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message {
 #if LogMessages
-    static Pcre irritating("^(?:The page at .* displayed insecure content from .*\\.|Unsafe JavaScript attempt to access frame with URL .* from frame with URL .*\\. Domains, protocols and ports must match\\.)\\n$");
+    static Pcre irritating("^(?"
+        ":" "The page at .* displayed insecure content from .*\\."
+        "|" "Unsafe JavaScript attempt to access frame with URL .* from frame with URL .*\\. Domains, protocols and ports must match\\."
+    ")\\n$");
+
     if (NSString *data = [message objectForKey:@"message"])
         if (irritating(data))
             return;