beautiful-dom
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -416,3 +416,3 @@ "use strict"; | ||
} | ||
this.data = data_source.split(/\n\r|\n|\r/gmi).join(" "); | ||
this.data = data_source.toString().split(/\n\r|\n|\r/gmi).join(" "); | ||
} | ||
@@ -438,4 +438,4 @@ BeautifulDom.prototype.reInit = function () { | ||
BeautifulDom.prototype.createTagRegExp = function (tagType) { | ||
var tagRegExp = new RegExp("<\\s*" + tagType + "(\\s*|\\s+).*?>|<\\s*/" + tagType + ">", "mi"); | ||
var openingRegExp = new RegExp("<\\s*" + tagType + "(\\s*|\\s+).*?>"); | ||
var tagRegExp = new RegExp("<\\s*" + tagType + "\\b.*?>|<\\s*/" + tagType + ">", "mi"); | ||
var openingRegExp = new RegExp("<\\s*" + tagType + "\\b.*?>"); | ||
var closingRegExp = new RegExp("<\\s*/" + tagType + ">"); | ||
@@ -442,0 +442,0 @@ return { tagRegExp: tagRegExp, openingRegExp: openingRegExp, closingRegExp: closingRegExp }; |
{ | ||
"name": "beautiful-dom", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Beautiful-dom is a lightweight library that mirrors the capabilities of the HTML DOM API needed for parsing crawled HTML/XML pages. It models the methods and properties of HTML nodes that are relevant for extracting data from HTML nodes. It is written in TypeScript and can be used as a CommonJS library", | ||
@@ -10,2 +10,5 @@ "main": "dist/index.js", | ||
}, | ||
"devDependencies":{ | ||
"jest": "^24.5.0" | ||
}, | ||
"keywords": ["dom","html","xml","parser","crawler"], | ||
@@ -12,0 +15,0 @@ "author": "Ajah Chukwuemeka", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
685333
14
1298
1
3