aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-08-21 08:33:01 +0000
committeranekos2010-08-21 08:33:01 +0000
commit88643cecdc7db719cf013f5172e1326025359d48 (patch)
tree14e09a8f6a35b06f5c17495eae864a2a4f9ae2dd
parentf893b7b5abac16cf9cc952b7ec3c619cd129804f (diff)
downloadvimperator-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-xtwittperator.js11
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(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"")
+ str.replace(/&([^;]+);/g, function (m, n) Amps[n] || m);
let result = {};
for (let [n, v] in Iterator(st)) {