Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The regex doesn't work as well #119

Open
Dmytro15 opened this issue Feb 1, 2021 · 0 comments
Open

The regex doesn't work as well #119

Dmytro15 opened this issue Feb 1, 2021 · 0 comments

Comments

@Dmytro15
Copy link

Dmytro15 commented Feb 1, 2021

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 ]

@Dmytro15 Dmytro15 changed the title The regex doesn`t work as well The regex doesn't work as well Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant