From 725932604928ce545b614b4ab6509c1a5d4f3826 Mon Sep 17 00:00:00 2001 From: andreoss Date: Tue, 6 Apr 2021 23:59:15 -0400 Subject: [PATCH] (#1579) Qulice compliance --- src/main/java/org/cactoos/text/SuffixOf.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cactoos/text/SuffixOf.java b/src/main/java/org/cactoos/text/SuffixOf.java index 6ee56bde9..ce775838d 100644 --- a/src/main/java/org/cactoos/text/SuffixOf.java +++ b/src/main/java/org/cactoos/text/SuffixOf.java @@ -54,6 +54,7 @@ public SuffixOf(final CharSequence text, final CharSequence boundary) { public SuffixOf(final Text text, final CharSequence boundary) { this(text, new TextOf(boundary)); } + /** * Ctor. * @param text Text representing the text value @@ -67,7 +68,8 @@ public SuffixOf(final Text text, final Text boundary) { (Text t) -> t.asString().indexOf(boundary.asString()) >= 0, t -> new Sub( t, - s -> s.indexOf(boundary.asString()) + new LengthOf(boundary).value().intValue() + s -> s.indexOf(boundary.asString()) + + new LengthOf(boundary).value().intValue() ), t -> new TextOf("") )