Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3283

Linq translation of IndexOf results in wrong regex is some case

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: Linq, LINQ3

      Example:

      Find(p => p.Name.IndexOf("John", 3) == 0)

      translates to 

      ^.{3}(?!.{0,-4}John).{-3}John

            Assignee:
            Unassigned Unassigned
            Reporter:
            boris.dogadov@mongodb.com Boris Dogadov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: