minor: fix for 1.9

This commit is contained in:
Mike Dirolf 2009-12-17 12:26:26 -05:00
parent 9e38ef4f8b
commit 9ba194c4b1

View File

@ -73,7 +73,7 @@ class BSON_RUBY
end
def self.serialize_key(buf, key)
raise InvalidDocument, "Key names / regex patterns must not contain the NULL byte" if key.include? 0
raise InvalidDocument, "Key names / regex patterns must not contain the NULL byte" if key.include? "\x00"
self.serialize_cstr(buf, key)
end