diff options
Diffstat (limited to 'jstests/core/regex_options.js')
-rw-r--r-- | jstests/core/regex_options.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/regex_options.js b/jstests/core/regex_options.js index 3febe2575ab..f661e4812a8 100644 --- a/jstests/core/regex_options.js +++ b/jstests/core/regex_options.js @@ -1,7 +1,7 @@ t = db.jstests_regex_options; t.drop(); -t.save( { a: "foo" } ); -assert.eq( 1, t.count( { a: { "$regex": /O/i } } ) ); -assert.eq( 1, t.count( { a: /O/i } ) ); -assert.eq( 1, t.count( { a: { "$regex": "O", "$options": "i" } } ) ); +t.save({a: "foo"}); +assert.eq(1, t.count({a: {"$regex": /O/i}})); +assert.eq(1, t.count({a: /O/i})); +assert.eq(1, t.count({a: {"$regex": "O", "$options": "i"}})); |