summaryrefslogtreecommitdiff
path: root/js/post-filter.js
diff options
context:
space:
mode:
authormarktaiwan <mark.taiwan@gmail.com>2015-03-16 22:36:26 +0800
committerczaks <marcin@6irc.net>2016-05-05 12:33:44 +0200
commit59ee8a990f67298326628f2bf6a9e65fb1bb3cea (patch)
treebe36379d6972e2491f72738f783d69b420343cc4 /js/post-filter.js
parent4e271121472e97e37ff914a549a8ed1dfc2ea055 (diff)
post-filter.js: prevent extra space characters
prevent extra spaces in comment caused by joining strings with leading or trailing space.
Diffstat (limited to 'js/post-filter.js')
-rw-r--r--js/post-filter.js2
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(' ');