Skip to content
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

Add CharSequence.containsAny() extension function #826

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

alexander-yevsyukov
Copy link
Contributor

This PR adds CharSequence.containsAny() extension function so that it's easier to detect several prohibited characters.

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.97%. Comparing base (f9e4d5b) to head (44a6c00).
Report is 6 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #826      +/-   ##
============================================
+ Coverage     74.96%   74.97%   +0.01%     
  Complexity     1170     1170              
============================================
  Files           189      189              
  Lines          4246     4248       +2     
  Branches        338      338              
============================================
+ Hits           3183     3185       +2     
  Misses          932      932              
  Partials        131      131              

Copy link

@Oleg-Melnik Oleg-Melnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-yevsyukov LGTM with the minor improvement to address prior to merging.

src/main/kotlin/io/spine/string/CharSequenceExts.kt Outdated Show resolved Hide resolved
@alexander-yevsyukov alexander-yevsyukov merged commit 733890d into master Sep 13, 2024
7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the contains-many branch September 13, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants