Skip to content

Commit

Permalink
fix (prismicio-community#152): use trim instead of substr to remove t…
Browse files Browse the repository at this point in the history
…railing new line
  • Loading branch information
c0nst4ntin committed Nov 22, 2022
1 parent 72feea2 commit 6a6914c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Prismic/Dom/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function asText($richText)
}
}

return substr($result, 0, -1);
return trim($result);
}

/**
Expand Down

0 comments on commit 6a6914c

Please sign in to comment.