aboutsummaryrefslogtreecommitdiffstats
path: root/lookupDictionary.js
diff options
context:
space:
mode:
authordrry2008-04-07 15:33:17 +0000
committerdrry2008-04-07 15:33:17 +0000
commitc136485e4e0b2052719fe24cda688891e01130dd (patch)
treef04fe6d93781c8f1e758a2faaece4771000cfe56 /lookupDictionary.js
parenta89408ab2c1ba4b491b93b2092b6f438c2864b1c (diff)
downloadvimperator-plugins-c136485e4e0b2052719fe24cda688891e01130dd.tar.bz2
lang/javascript/vimperator-plugins/trunk/lookupDictionary.js
lang/javascript/vimperator-plugins/trunk/gmperator.js: * 空白を修整しました。 * ほか。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9102 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'lookupDictionary.js')
-rw-r--r--lookupDictionary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lookupDictionary.js b/lookupDictionary.js
index 3a6b71f..f89bb44 100644
--- a/lookupDictionary.js
+++ b/lookupDictionary.js
@@ -73,7 +73,7 @@ function getHTML(url, callback){
* @return {DOMDocument}
*/
function createHTMLDocument(str){
- str = str.replace(/^[\s\S]*?<html(?:\s[^>]+?)?>|<\/html\s*>[\S\s]*$/ig, '').replace(/[\r\n]+/g, " ");
+ str = str.replace(/^[\s\S]*?<html(?:\s[^>]+?)?>|<\/html\s*>[\S\s]*$/ig,'').replace(/[\r\n]+/g,' ');
var htmlFragment = document.implementation.createDocument(null,'html',null);
var range = document.createRange();
range.setStartAfter(window.content.document.body);