tingodb
tingodb copied to clipboard
Odd error if regex contains / character
TingoDB throws an error:
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.