From: Jay Freeman (saurik) Date: Sat, 5 Mar 2011 12:57:46 +0000 (-0800) Subject: Split addMessageToConsole: filter onto multiple lines. X-Git-Tag: v1.1.0%b1~62 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/c8f62968ca2c986a885932e3f36b6dce24297f32?ds=inline Split addMessageToConsole: filter onto multiple lines. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 8b82229a..08839728 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -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;