Skip to content

String filter function contains() from manager class not fully working if the text is in Cyrillic #3709

@mnkhtrbukhbold

Description

@mnkhtrbukhbold

names = await _db.managers.names.filter((f) => f.name.contains(query)).get();

This code does not work reliably when the name column contains Cyrillic characters (other non-Latin scripts were not tested). The search may match the first character correctly, but fails on subsequent characters. This issue does not occur with Latin text.

In contrast, the following query works correctly for both Latin and Cyrillic characters:

names = await (_db.select(_db.names)..where((x) => x.name.like('%$query%'))).get();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions