-
Notifications
You must be signed in to change notification settings - Fork 252
bf: ZENKO-250 correctly evaluate regex pattern #1232
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
Conversation
| */ | ||
| function parseLikeExpression(regex) { | ||
| const split = regex.split('/'); | ||
| if (split.length < 3) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we include the case where split[0] != '' here, i.e. checking if regex starts with a slash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. you're correct, I should be checking if the leading character is a slash. Will fix this.
545f214 to
5f4cc79
Compare
Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)
|
PR has been updated. Reviewers, please be cautious. |
5f4cc79 to
e4e1354
Compare
|
PR has been updated. Reviewers, please be cautious. |
e4e1354 to
3a8da01
Compare
|
PR has been updated. Reviewers, please be cautious. |
Original code will evaluate regex in `/pattern/` syntax incorrectly Adds parser to have MD search recognize if a regex is in `/pattern/` syntax or a simple string
3a8da01 to
ba820e5
Compare
|
PR has been updated. Reviewers, please be cautious. |
Original code will evaluate regex in
/pattern/syntax incorrectlyAdds parser to have MD search recognize if a regex is in
/pattern/syntax ora simple string