Skip to content

The regex doesn't work as wellΒ #119

@Dmytro15

Description

@Dmytro15

When I create the resource with for example field path with value "someText/someText" (with slash) and I want to get all resources which DON'T have slash by regex (apiUrl/resource?path__regex=/^((?!/).)*$/g ). I get a wrong result((( I get all resources also which don't match with regex. As I understand it's a BUG.
This BUG is in this line
When you match regexes you get wrong parts because in the example regex has 3 slash
This is console.log(parts). As you see we have wrong match((
[ '/^((?!\\/).)*$', '^((?!\\', ').)*$', index: 0, input: '/^((?!\\/).)*$/g', groups: undefined ]

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