diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-05 04:57:46 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:37 -0800 |
commit | c8f62968ca2c986a885932e3f36b6dce24297f32 (patch) | |
tree | d7ac4e866693b1c60edd0e8d6fbe0adc13ec9b19 | |
parent | fe2d3954ad019bc5f3d8d18a40c4b3ae66c76c96 (diff) |
Split addMessageToConsole: filter onto multiple lines.
-rw-r--r-- | CyteKit/WebViewController.mm | 6 |
1 files changed, 5 insertions, 1 deletions
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; |