[CSHARP-260] JsonReader fails on some forms of regular expressions Created: 05/Jul/11  Updated: 02/Apr/15  Resolved: 06/Jul/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Here are some examples of JSON documents that JsonReader fails to parse:

{ rx : new RegExp("abc") }

{ rx : { $regex : "abc" }}
{ rx : { $regex : "abc", $options : "i" }}

There may be others...



 Comments   
Comment by Robert Stam [ 06/Jul/11 ]

Added support for:

{ rx : new RegExp("abc") } { rx : new RegExp("abc", "imxs") } { rx : RegExp("abc") } { rx : RegExp("abc", "imxs") }

{ rx :

{ $regex : "abc" }

}
{ rx :

{ $regex : "abc", $options : "imxs" }

}

The last two were partially supported (was: no unquoted strings for $regex and $options and $options was required).

Generated at Wed Feb 07 21:36:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.