aboutsummaryrefslogtreecommitdiffstats
path: root/copy.js
diff options
context:
space:
mode:
authorteramako2009-08-19 12:49:13 +0000
committerteramako2009-08-19 12:49:13 +0000
commit62d0f8ce9e904fc70e12afeade1c5cb53eb29904 (patch)
tree4bb0383f31ee03211cbb615be283be1cb06bd751 /copy.js
parent8a994ccfb3e960a1475be8e4bd0543a0ae181e4e (diff)
downloadvimperator-plugins-62d0f8ce9e904fc70e12afeade1c5cb53eb29904.tar.bz2
ごめん、あやまったものでcommitしてしまった
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34916 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'copy.js')
-rw-r--r--copy.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/copy.js b/copy.js
index 7cbc906..1a99511 100644
--- a/copy.js
+++ b/copy.js
@@ -8,7 +8,7 @@ var PLUGIN_INFO =
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/copy.js</updateURL>
<author mail="teramako@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/teramako/">teramako</author>
<license>MPL 1.1/GPL 2.0/LGPL 2.1</license>
-<version>0.7.1</version>
+<version>0.7.3</version>
<detail><![CDATA[
== Command ==
:copy {copyString}:
@@ -153,7 +153,9 @@ const REPLACE_TABLE = {
for (var i=0, c=selection.rangeCount; i<c; i++){
htmlsel += serializer.serializeToString(selection.getRangeAt(i).cloneContents());
}
- return htmlsel;
+ return htmlse.replace(/<(\/)?(\w+)([\s\S]*?)>/g function(all, close, tag, attr){
+ return "<" + close + tag.toLowerCase() + attr + ">";
+ });
},
get CLIP () {
return util.readFromClipboard();