-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interpreter): ensure
regexp
correctly works with null
& `unde…
…fined` values (#14) * fix(js/interpreters): 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 * test(js/intepreters.spec): regex: add test for undefined values Co-authored-by: Jérémy <jeremy.huard@doeo.fr> Co-authored-by: Sergii <sergiy.stotskiy@gmail.com>
- Loading branch information
1 parent
ee007d0
commit 061e5b0
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters