Skip to content

[BUG] Undeterministic behavior in Turkish language #2742

@ltetak

Description

@ltetak

Version
6.2.0

Describe the bug
In the Turkish language, lowercase and capital i/I are not the same letter. EnsureIndex does not create a proper name in this case
e.g. EnsureIndex(x => x.Id) // note Id is mapped to _id
and EnsureIndex(x => x.Iid) // I in Iid is treated as non-ascii character in Regex, and removed
This creates two distinct index names in English (id, Iid). But it creates the same index name in Turkish (id), despite it being applied to two distinct fields.

Code to Reproduce
set current culture to tr-TR
Create two indexes as above
throws IndexAlreadyExist exception

Expected behavior
ignore culture in all Regex handlers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions