diff options
author | suVene | 2009-01-19 13:10:18 +0000 |
---|---|---|
committer | suVene | 2009-01-19 13:10:18 +0000 |
commit | da5a784c17ec578b05fea97b4c83e9911d1df05a (patch) | |
tree | 7cb94e0332a74ca7dc4251ac3127ee2fa0b691da | |
parent | baddb0940622318a8df20218ffdd34581d6b60fc (diff) | |
download | vimperator-plugins-da5a784c17ec578b05fea97b4c83e9911d1df05a.tar.bz2 |
* getHTMLFragment の 改行trim を削除してみた。不具合なければ他で対応のかんじで。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28668 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | _libly.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ var PLUGIN_INFO = <description lang="ja">適当なライブラリっぽいものたち。</description> <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> <license>MIT</license> - <version>0.1.20</version> + <version>0.1.21</version> <minVersion>1.2</minVersion> <maxVersion>2.0pre</maxVersion> <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/_libly.js</updateURL> @@ -281,7 +281,7 @@ libly.$U = {//{{{ }, getHTMLFragment: function(html) { if (!html) return html; - return html.replace(/^[\s\S]*?<html(?:[ \t\n\r][^>]*)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, '').replace(/[\r\n]+/g, ' '); + return html.replace(/^[\s\S]*?<html(?:[ \t\n\r][^>]*)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, ''); }, stripTags: function(str, tags) { var ignoreTags = '(?:' + [].concat(tags).join('|') + ')'; |