Browse files

correct length condition in SingleByteCharsetProber

  • Loading branch information...
1 parent bb2ddf0 commit 60bc0f3ca73197ad2553bd737176afc19a3246b9 @jmhodges committed Dec 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rchardet/sbcharsetprober.rb
View
2 lib/rchardet/sbcharsetprober.rb
@@ -68,7 +68,7 @@ def feed(aBuf)
aBuf = filter_without_english_letters(aBuf)
end
aLen = aBuf.length
- if aLen != 0
+ if aLen == 0
return get_state()
end
aBuf.each_byte do |b|

0 comments on commit 60bc0f3

Please sign in to comment.