[GODRIVER-1463] The Options field in `primitive.Regex` doesn't seem to work Created: 17/Jan/20  Updated: 27/Oct/23  Resolved: 17/Jan/20

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 1.1.2, 1.1.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Shibasis Patel Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

go version go1.12.7 darwin/amd64



 Description   

I wanted to find a document having a field `name` using regex with case insensitivity. I gave the below query in the `find` method, regex is working correctly, however, the case insensitivity thing doesn't seem to work.

query: 
"name": primitive.Regex{Pattern: "Hector", Options: "i"}
Basically, the `i` option is not working.



 Comments   
Comment by Divjot Arora (Inactive) [ 17/Jan/20 ]

Hi patelshibasis@gmail.com,

Thanks for following up to let us know the type is working correctly for you. I'm closing this ticket as "Gone Away". Feel free to write add a comment on this ticket or create a new one if you have any other issues.

– Divjot

Comment by Shibasis Patel [ 17/Jan/20 ]

There were some other errors. It's working fine.

Generated at Thu Feb 08 08:36:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.