-
Notifications
You must be signed in to change notification settings - Fork 12
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
Ensure that checkSync() and check() do not stall without the flags parameter #1383
Conversation
We assume the TypeScript definition is always guaranteed, so the current implementation does not consider the issue of missing the 2nd parameter of However, some programming languages may not have a regular expression flag, so this argument may be made optional. Let me give this some thought. |
Thank you. The context of this PR is that it took me a good amount of time to work out why, in JS, |
That sounds good to me. It helps us as a safety net. |
I've made it check that both parameters are strings, to be sure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1383 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 69 69
Lines 3080 3106 +26
Branches 499 503 +4
=========================================
+ Hits 3080 3106 +26 ☔ View full report in Codecov by Sentry. |
@MegaManSec Please run |
should be ok now |
@MegaManSec Codecov reported the coverage is decreased. Could you add |
sure, hope that's fine. |
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.
Your fix seems wrong. I added a review and suggestions.
This patch fixes an issue where the two functions would never finish if called without a second parameter. Signed-off-by: Joshua Rogers <joshua-github-recheck@joshua.hu>
@MegaManSec Thank you for your contribution! I will release a new version. |
This patch fixes an issue where the two functions would never finish if called without a second parameter. For example, check("^(a|a+)+$")