From 521c7276d11b688914da6937cfd88f56447d0448 Mon Sep 17 00:00:00 2001 From: drry Date: Mon, 7 Apr 2008 04:38:52 +0000 Subject: lang/javascript/vimperator-plugins/trunk/lookupDictionary.js: * fixed a regexp. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9067 d0d07461-0603-4401-acd4-de1884942a52 --- lookupDictionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lookupDictionary.js') diff --git a/lookupDictionary.js b/lookupDictionary.js index 4d7c822..3a6b71f 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]*?]+?)?>|[\r\n]+|<\/html\s*>[\S\s]*$/ig, ''); + str = str.replace(/^[\s\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); -- cgit v1.2.3