Sha256: 57c0829bee36798ee92bc8300e31d2384ad9dddd4024a9f88313986dabe71bf3

Contents?: true

Size: 1.19 KB

Versions: 26

Compression:

Stored size: 1.19 KB

Contents

{
    "description": "Regular Expression type",
    "bson_type": "0x0B",
    "test_key": "a",
    "valid": [
        {
            "description": "empty regex with no options",
            "bson": "0A0000000B6100000000",
            "extjson": "{\"a\" : {\"$regex\" : \"\", \"$options\" : \"\"}}"
        },
        {
            "description": "regex without options",
            "bson": "0D0000000B6100616263000000",
            "extjson": "{\"a\" : {\"$regex\" : \"abc\", \"$options\" : \"\"}}"
        },
        {
            "description": "regex with options",
            "bson": "0F0000000B610061626300696D0000",
            "extjson": "{\"a\" : {\"$regex\" : \"abc\", \"$options\" : \"im\"}}"
        },
        {
            "description": "regex with slash",
            "bson": "110000000B610061622F636400696D0000",
            "extjson": "{\"a\" : {\"$regex\" : \"ab/cd\", \"$options\" : \"im\"}}"
        }
    ],
    "decodeErrors": [
        {
            "description": "embedded null in pattern",
            "bson": "0F0000000B610061006300696D0000"
        },
        {
            "description": "embedded null in flags",
            "bson": "100000000B61006162630069006D0000"
        }
    ]
}

Version data entries

26 entries across 25 versions & 2 rubygems

Version Path
bson-4.7.1-java spec/support/corpus-tests/regex.json
bson-4.7.1 spec/support/corpus-tests/regex.json
bson-4.7.0-java spec/support/corpus-tests/regex.json
bson-4.7.0 spec/support/corpus-tests/regex.json
bson-4.6.0-java spec/support/corpus-tests/regex.json
bson-4.6.0 spec/support/corpus-tests/regex.json
bson-4.5.0-java spec/support/corpus-tests/regex.json
bson-4.5.0 spec/support/corpus-tests/regex.json
bson-4.4.2-java spec/support/corpus-tests/regex.json
bson-4.4.2 spec/support/corpus-tests/regex.json
bson-4.4.1-java spec/support/corpus-tests/regex.json
bson-4.4.1 spec/support/corpus-tests/regex.json
tdiary-5.0.8 vendor/bundle/gems/bson-4.3.0/spec/support/corpus-tests/regex.json
bson-4.3.0-java spec/support/corpus-tests/regex.json
bson-4.3.0 spec/support/corpus-tests/regex.json
bson-4.3.0.beta spec/support/corpus-tests/regex.json
bson-4.3.0.beta-java spec/support/corpus-tests/regex.json
bson-4.2.2-java spec/support/corpus-tests/regex.json
bson-4.2.2 spec/support/corpus-tests/regex.json
tdiary-5.0.5 vendor/bundle/gems/bson-4.2.1/spec/support/corpus-tests/regex.json