Skip to content

Commit 8fbf17d

Browse files
committed
Merge pull request github#1045 from Shredder121/json-squish
Reorder squish(), so it is performed on simple text
2 parents 791dfcd + 8365ef2 commit 8fbf17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/strings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def squish(str)
1616
end
1717

1818
def clean_for_json(str)
19-
strip_html(squish(str))
19+
squish(strip_html(str))
2020
end
2121
end
2222
end

0 commit comments

Comments
 (0)