aboutsummaryrefslogtreecommitdiffstats
path: root/lookupDictionary.js
diff options
context:
space:
mode:
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);