diff options
author | anekos | 2010-08-21 08:33:01 +0000 |
---|---|---|
committer | anekos | 2010-08-21 08:33:01 +0000 |
commit | 88643cecdc7db719cf013f5172e1326025359d48 (patch) | |
tree | 14e09a8f6a35b06f5c17495eae864a2a4f9ae2dd | |
parent | f893b7b5abac16cf9cc952b7ec3c619cd129804f (diff) | |
download | vimperator-plugins-88643cecdc7db719cf013f5172e1326025359d48.tar.bz2 |
実体参照の展開パターン追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38314 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/twittperator.js b/twittperator.js index f3315cc..0b32841 100755 --- a/twittperator.js +++ b/twittperator.js @@ -28,7 +28,7 @@ let PLUGIN_INFO = <name>twittperator</name> <description>Twitter Client using ChirpStream</description> <description lang="ja">OAuth対応Twitterクライアント</description> - <version>1.2.0</version> + <version>1.2.1</version> <minVersion>2.3</minVersion> <maxVersion>2.4</maxVersion> <author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author> @@ -1460,8 +1460,15 @@ let PLUGIN_INFO = return str; }, // }}} fixStatusObject: function (st) { // {{{ + const Amps = { + lt: "<", + gt: ">", + quot: "\"", + hellip: "\u2026", + }; + function unescapeAmps(str) - str.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"") + str.replace(/&([^;]+);/g, function (m, n) Amps[n] || m); let result = {}; for (let [n, v] in Iterator(st)) { |