diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-06-10 04:29:15 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-06-10 04:29:15 +0000 |
commit | 06babbec7e788f2f3684f257ac817b424aedbf46 (patch) | |
tree | e2ac4ddcadfc164a720a9a055965443c01711367 /lib/redmine/core_ext | |
parent | 7f4767418befd064cfeb65b034eeeb2832a3c264 (diff) | |
download | redmine-06babbec7e788f2f3684f257ac817b424aedbf46.tar.gz redmine-06babbec7e788f2f3684f257ac817b424aedbf46.zip |
remove is_binary_data? from String (#25563)
git-svn-id: http://svn.redmine.org/redmine/trunk@16644 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/core_ext')
-rw-r--r-- | lib/redmine/core_ext/string.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/redmine/core_ext/string.rb b/lib/redmine/core_ext/string.rb index c865284ac..2da5ffef9 100644 --- a/lib/redmine/core_ext/string.rb +++ b/lib/redmine/core_ext/string.rb @@ -4,8 +4,4 @@ require File.dirname(__FILE__) + '/string/inflections' class String #:nodoc: include Redmine::CoreExtensions::String::Conversions include Redmine::CoreExtensions::String::Inflections - - def is_binary_data? - ( self.count( "^ -~", "^\r\n" ).fdiv(self.size) > 0.3 || self.index( "\x00" ) ) unless empty? - end end |