diff options
| author | marktaiwan <mark.taiwan@gmail.com> | 2015-03-16 22:36:26 +0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 12:33:44 +0200 |
| commit | 59ee8a990f67298326628f2bf6a9e65fb1bb3cea (patch) | |
| tree | be36379d6972e2491f72738f783d69b420343cc4 | |
| parent | 4e271121472e97e37ff914a549a8ed1dfc2ea055 (diff) | |
post-filter.js: prevent extra space characters
prevent extra spaces in comment caused by joining strings with leading
or trailing space.
| -rw-r--r-- | js/post-filter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/post-filter.js b/js/post-filter.js index 518e38bb..8eb3ab7d 100644 --- a/js/post-filter.js +++ b/js/post-filter.js @@ -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(' '); |
