Merge pull request #2745 from basecamp/excert-truncation

Pre-truncate excerpt before running replacement regexes
This commit is contained in:
Zacharias Knudsen
2026-03-23 10:24:58 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ class ExcerptHelperTest < ActionView::TestCase
end
test "ol" do
assert_excerpt("99. Hello world", "99. Hello world")
assert_excerpt("99. Hello world", "99. Hello world")
assert_excerpt("99. Hello world", " 99. Hello world")
end
test "large spaces" do