From dbebf12d27e18ab1eaec9957a5290969499e9c32 Mon Sep 17 00:00:00 2001 From: Christian Frichot Date: Sat, 15 Jun 2013 13:45:24 +0800 Subject: [PATCH] Update to browser_filter. See Issue #906 --- core/filters/browser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/filters/browser.rb b/core/filters/browser.rb index ca656e86b..73d5cd131 100644 --- a/core/filters/browser.rb +++ b/core/filters/browser.rb @@ -123,9 +123,9 @@ module Filters return true if not is_non_empty_string?(str) return false if str.length > 1000 if RUBY_VERSION >= "1.9" && str.encoding === Encoding.find('UTF-8') - return (str =~ /[^\w\d\s()-.,;_!\302\256]/u).nil? + return (str =~ /[^\w\d\s()-.,';_!\302\256]/u).nil? else - return (str =~ /[^\w\d\s()-.,;_!\302\256]/n).nil? + return (str =~ /[^\w\d\s()-.,';_!\302\256]/n).nil? end end