0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Replace new-lines with spaces in excerpt helper.

fixes #531
This commit is contained in:
Fabian Becker 2013-10-23 20:28:36 +00:00
parent 5ba8959e83
commit 16f72ba865

View file

@ -192,6 +192,7 @@ coreHelpers = function (ghost) {
/*jslint regexp:true */
excerpt = String(this.html).replace(/<\/?[^>]+>/gi, '');
excerpt = excerpt.replace(/(\r\n|\n|\r)+/gm, ' ');
/*jslint regexp:false */
if (!truncateOptions.words && !truncateOptions.characters) {