lib/dolos/string_io_wrapper.rb in dolos-0.1.2 vs lib/dolos/string_io_wrapper.rb in dolos-0.1.3
- old
+ new
@@ -20,10 +20,9 @@
io.seek(offset)
end
def matches?(utf8_str)
read = io.read(utf8_str.bytesize)
- io.seek(offset)
if read.nil?
false
else
read.force_encoding('UTF-8') == utf8_str