diff options
author | anekos | 2011-05-01 16:05:21 +0900 |
---|---|---|
committer | anekos | 2011-05-01 16:05:38 +0900 |
commit | ac243eead73c4aa993493e4d254389e9a494c0da (patch) | |
tree | 101b017c976d680f573ed7c815b98c1162dedeac | |
parent | 64db6dc9814daa71ada89ee94126f8c6b74b5c74 (diff) | |
download | vimperator-plugins-ac243eead73c4aa993493e4d254389e9a494c0da.tar.bz2 |
oops
-rw-r--r-- | twittperator/colorful-log-writer.tw | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/twittperator/colorful-log-writer.tw b/twittperator/colorful-log-writer.tw index 7018f24..e350385 100644 --- a/twittperator/colorful-log-writer.tw +++ b/twittperator/colorful-log-writer.tw @@ -33,7 +33,7 @@ let ngWords = liberator.globalVariables.twittperator_plugin_colorful_log_writer_ 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 = let (v = liberator.globalVariables.twittperator_plugin_colorful_log_writer_colored_words)(v ? v.split(",") : []); for(let i = 0; i < trackWord.length; i++){ trackWord[i] = trackWord[i].replace(/\|/g, "|#?"); } |