mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-30 21:37:28 +00:00
Added support for containsAny function
This commit is contained in:
@@ -103,8 +103,16 @@ Verifies that all needles are contained in value.
|
||||
// result = false
|
||||
```
|
||||
|
||||
## containsAny(value, needles, caseSensitive)
|
||||
|
||||
Verifies that one or more of needles are contained in value.
|
||||
|
||||
```java
|
||||
String title = "foo bar";
|
||||
String needles = ["foo", "bar", "test"];
|
||||
String result = containsAny(title, needles, true);
|
||||
// result = true
|
||||
```
|
||||
|
||||
## Other functions that can be added
|
||||
|
||||
|
||||
Reference in New Issue
Block a user