-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(contains): Added possibility to check that string contains seed multiple times #1836
feat(contains): Added possibility to check that string contains seed multiple times #1836
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1836 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 102 102
Lines 2029 2030 +1
Branches 457 459 +2
=========================================
+ Hits 2029 2030 +1
Continue to review full report at Codecov.
|
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.
@tux-tn -- need your final ✅ |
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.
LGTM 🎉
Thank you @Marcholio for all your recent contributions ❤️
…ltiple times (#1836) * Added feature to require minimum number of occurrences for the seed in 'contains' * Changed regex to split Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com> Co-authored-by: Markus <markus.tyrkko@gmail.com>
…ltiple times (#1836) * Added feature to require minimum number of occurrences for the seed in 'contains' * Changed regex to split Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com> Co-authored-by: Markus <markus.tyrkko@gmail.com>
contains
now checks if the string contains the seed n number of times, eg. foobarfoobar contains foo 2 times. This functionality is enabled by providing minOccurrences option (defaults to 1). Also refactored the implementation to be based on regex, rather than indexOf.Checklist