From c8f62968ca2c986a885932e3f36b6dce24297f32 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 5 Mar 2011 04:57:46 -0800 Subject: Split addMessageToConsole: filter onto multiple lines. --- CyteKit/WebViewController.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 8b82229..0883972 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; -- cgit v1.2.3