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:
commit
e7777a91bb
@ -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(' ');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user