diff options
author | teramako | 2009-08-17 11:52:13 +0000 |
---|---|---|
committer | teramako | 2009-08-17 11:52:13 +0000 |
commit | a154161fe8a392264a72bdfd38e8203ee33d975a (patch) | |
tree | 48f20341222329a84d5089dcd16a46b0222f2868 | |
parent | fda16603a0d113d2c3f79232f9560ee6aef3478d (diff) | |
download | vimperator-plugins-a154161fe8a392264a72bdfd38e8203ee33d975a.tar.bz2 |
%HTMLSEL%でタグ名が大文字のままになるバグ修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34882 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | copy.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 + ">"; }); } |