aboutsummaryrefslogtreecommitdiffstats
path: root/copy.js
diff options
context:
space:
mode:
authorteramako2009-08-17 11:52:13 +0000
committerteramako2009-08-17 11:52:13 +0000
commita154161fe8a392264a72bdfd38e8203ee33d975a (patch)
tree48f20341222329a84d5089dcd16a46b0222f2868 /copy.js
parentfda16603a0d113d2c3f79232f9560ee6aef3478d (diff)
downloadvimperator-plugins-a154161fe8a392264a72bdfd38e8203ee33d975a.tar.bz2
%HTMLSEL%でタグ名が大文字のままになるバグ修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34882 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'copy.js')
-rw-r--r--copy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy.js b/copy.js
index e201c8f..00487d4 100644
--- a/copy.js
+++ b/copy.js
@@ -153,7 +153,7 @@ const REPLACE_TABLE = {
for (var i=0, c=selection.rangeCount; i<c; i++){
htmlsel += serializer.serializeToString(selection.getRangeAt(i).cloneContents());
}
- return htmlsel.replace(/<(\/)?(\w+)(\s+[\s\S]*?)?>/g, function(all, close, tag, attr){
+ return htmlsel.replace(/<(\/)?(\w+)([\s\S]*?)>/g, function(all, close, tag, attr){
return "<" + close + tag.toLowerCase() + attr + ">";
});
}