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

Bugfix/js/regex with undefined value #14

Merged
merged 3 commits into from
Aug 25, 2020

Conversation

J3m5
Copy link
Contributor

@J3m5 J3m5 commented Aug 24, 2020

prevent regex() from returning true when value is undefined

if key is not defined or if value is undefined, the regex should not evaluate it because it can lead
to false positive.
The undefined type is evaluated as a string 'undefined',\i undefined should be
evaluated with the "exist" operator

Jérémy added 2 commits August 24, 2020 17:28
…is undefined

if key is not defined or if value is undefined, the regex should not evaluate it because it can lead
to false positive.
The undefined type is evaluated as a string 'undefined',\i undefined should be
evaluated with the "exist" operator
packages/js/src/interpreters.ts Outdated Show resolved Hide resolved
@J3m5
Copy link
Contributor Author

J3m5 commented Aug 24, 2020

Ah, yes, totally, you're right.
I won't have access to my computer until this weekend so feel free to add the needed change.

@stalniy stalniy merged commit 061e5b0 into stalniy:master Aug 25, 2020
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

Successfully merging this pull request may close these issues.

2 participants