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
Fixed #59368 #70167
Fixed #59368 #70167
Conversation
if (value.length === 0) { | ||
return null; | ||
} | ||
if (!this._findInput.getRegex()) { |
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.
What do you think about to put both of those conditions in one if with an OR statement?
} | ||
try { | ||
/* tslint:disable:no-unused-expression */ | ||
new RegExp(value); |
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.
tip: is more simple use tslint:disable-next-line:no-unused-expression
instead disable and enable next 🙂
Thanks for the suggestions, I also applied these changes to |
Hey @joaomoreno , @rebornix owns the find widget since around 2 years. |
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.
@irrationalRock thanks for your contribution!
This PR fixes: #59378.
It adds regex validation to the terminal.