Skip to content

Commit c6b3c80

Browse files
committed
Add String contains() method
1 parent dae7b19 commit c6b3c80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/nextflow/script/types/shim/String.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
@Ops(StringOps.class)
2929
public interface String {
3030

31+
@Description("""
32+
Returns `true` if the string ends with the given substring.
33+
""")
34+
boolean contains(String s);
35+
3136
@Description("""
3237
Returns `true` if the string ends with the given suffix.
3338
""")

0 commit comments

Comments
 (0)