From 8ce88c1b366490825af870e43ecefdb2c2f4680c Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Wed, 13 Oct 2021 19:55:23 +0100 Subject: [PATCH] Off by 1 --- src/Html/Renderables/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Html/Renderables/Text.php b/src/Html/Renderables/Text.php index b4b8c3a..1e045b9 100644 --- a/src/Html/Renderables/Text.php +++ b/src/Html/Renderables/Text.php @@ -78,7 +78,7 @@ final class Text implements TransformableRenderable $lastEndPos = $endPos; } - if (\strlen($this->text) -1 !== $lastEndPos) { + if (\strlen($this->text) !== $lastEndPos) { $Container = $Container->adding( new Text(\substr($this->text, $lastEndPos)) );