Skip to content

Change search plugin regular expression to support non-latin characters #2242

Closed
@alizadeh118

Description

@alizadeh118

Feature request

What problem does this feature solve?

This add non-latin support for search plugin.

What does the proposed API look like?

It's not going to change API.

How should this be implemented in your opinion?

Now search plugin use this regex: (?=.*\bWORD\b) and it works for latin words but not for non-latin ones and this is about \b word boundaries.
We can use this alternative way to support both latin and non-latin characters:
(?=.*(?<=\s|^)WORD(?=\s|$))

Are you willing to work on this yourself?

Yes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions