1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-21 13:09:41 +01:00

Merge pull request #430 from marktaiwan/post-filter

post-filter.js: prevent extra space characters
This commit is contained in:
Fredrick Brennan 2015-03-19 12:30:49 +08:00
commit e7777a91bb

View File

@ -425,7 +425,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
array = $post.find('.body').contents().filter(function () {if ($(this).text() !== '') return true;}).toArray();
array = $.map(array, function (ele) {
return $(ele).text();
return $(ele).text().trim();
});
comment = array.join(' ');