minor: fix for 1.9
This commit is contained in:
parent
9e38ef4f8b
commit
9ba194c4b1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue