diff options
-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)) { |