From a154161fe8a392264a72bdfd38e8203ee33d975a Mon Sep 17 00:00:00 2001 From: teramako Date: Mon, 17 Aug 2009 11:52:13 +0000 Subject: %HTMLSEL%でタグ名が大文字のままになるバグ修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34882 d0d07461-0603-4401-acd4-de1884942a52 --- copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'copy.js') 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/g, function(all, close, tag, attr){ + return htmlsel.replace(/<(\/)?(\w+)([\s\S]*?)>/g, function(all, close, tag, attr){ return "<" + close + tag.toLowerCase() + attr + ">"; }); } -- cgit v1.2.3