From 81fa434afbd7589c7eecb11c014562b3dca9999b Mon Sep 17 00:00:00 2001 From: elzzup Date: Fri, 4 Jul 2014 14:29:44 +0900 Subject: update pushfind mini chars skip option --- pushfind.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pushfind.js') diff --git a/pushfind.js b/pushfind.js index 733914d..35f78bd 100755 --- a/pushfind.js +++ b/pushfind.js @@ -17,7 +17,7 @@ let PLUGIN_INFO = xml` (function () { /* n文字以下は弾く */ - var skip_char_num = 2; + var skip_char_num = 1; /* 実行した際にコマンドラインにechoする */ var is_echo_pushfind = true; /* ヒットした文字列を逆に流し込む */ @@ -70,7 +70,8 @@ let PLUGIN_INFO = xml` words = res.split(cf.delimiter); } for each (var w in words) { - if (!w || pushwords.indexOf(w) != -1) { + //空白文字列,重複,短い単語のskip + if (!w || pushwords.indexOf(w) != -1 || w.length <= skip_char_num) { continue; } pushwords.push(w); -- cgit v1.2.3