tingodb icon indicating copy to clipboard operation
tingodb copied to clipboard

Odd error if regex contains / character

Open ganna-shmatova opened this issue 8 years ago • 0 comments

TingoDB throws an error: image image

Tried get with search query:

{
    Users: /^Admin$/i,
    Permissions: /^add \/ remove \/ modify users$/i
}

and

{
    Users: /^Admin$/i,
    Permissions: { $regex: /^add \/ remove \/ modify users$/i }
}

Query works fine with a string, but not with regex. Other regex queries work fine, as long as no / character is in them.

ganna-shmatova avatar Mar 30 '16 14:03 ganna-shmatova