diff options
author | anekos | 2011-05-01 15:58:41 +0900 |
---|---|---|
committer | anekos | 2011-05-01 15:58:41 +0900 |
commit | 64db6dc9814daa71ada89ee94126f8c6b74b5c74 (patch) | |
tree | ebf80524aecc4e3501c94dd4e6d0bad89351e09a | |
parent | 37008b7ab651b6ae6a718f7b94cebd40711f1177 (diff) | |
download | vimperator-plugins-64db6dc9814daa71ada89ee94126f8c6b74b5c74.tar.bz2 |
デフォルト値を設定
-rw-r--r-- | twittperator/colorful-log-writer.tw | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/twittperator/colorful-log-writer.tw b/twittperator/colorful-log-writer.tw index b6c8620..7018f24 100644 --- a/twittperator/colorful-log-writer.tw +++ b/twittperator/colorful-log-writer.tw @@ -29,11 +29,11 @@ let timeFormat = "%H:%M"; let color = { "reset":"\033\[0m", "me":"\033\[0;31m", "reply":"\033\[0;36m", "rt":"\033\[0;32m", "hashtag":"\033\[0;34m", "track":"\033\[0;35m" }; let screenName = liberator.globalVariables.twittperator_screen_name; -let ngWords = liberator.globalVariables.twittperator_plugin_colorful_log_writer_ng_words; +let ngWords = liberator.globalVariables.twittperator_plugin_colorful_log_writer_ng_words || '(?!)'; let JP = new RegExp("[\\u4e00-\\u9fa0\\u30A1-\\u30F6\\u30FC\\u3042-\\u3093\\u3001\\u3002\\uFF01\\uFF1F]"); //let trackWord = liberator.globalVariables.twittperator_track_words.split(","); -let trackWord = liberator.globalVariables.twittperator_plugin_colorful_log_writer_colored_words.split(","); +let trackWord = (liberator.globalVariables.twittperator_plugin_colorful_log_writer_colored_words || '').split(","); for(let i = 0; i < trackWord.length; i++){ trackWord[i] = trackWord[i].replace(/\|/g, "|#?"); } |