Permalink
Browse files

remove obvious comment

Also, I was bad at ruby.
  • Loading branch information...
1 parent f956648 commit 4a1b9e8b9cbc73e8fa5ea271ddba3f26354efaf3 @jmhodges committed Dec 2, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/rchardet/charsetprober.rb
@@ -53,11 +53,6 @@ def get_confidence
end
def filter_high_bit_only(aBuf)
- # DO NOT USE `gsub!`
- # It will remove all characters from the buffer that is later used by
- # other probers. This is because gsub! removes data from the instance variable
- # that will be passed to later probers, while gsub makes a new instance variable
- # that will not.
newBuf = aBuf.gsub(/([\x00-\x7F])+/, ' ')
return newBuf
end

0 comments on commit 4a1b9e8

Please sign in to comment.