node-html-parser
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -445,6 +445,6 @@ "use strict"; | ||
if (this.rawAttrs) { | ||
const re = /\b([a-z][a-z0-9\-]*)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig; | ||
const re = /\b([a-z][a-z0-9\-]*)(?:\s*=\s*(?:"([^"]+)"|'([^']+)'|(\S+)))?/ig; | ||
let match; | ||
while (match = re.exec(this.rawAttrs)) { | ||
attrs[match[1]] = match[3] || match[4] || match[5]; | ||
attrs[match[1]] = match[2] || match[3] || match[4] || ""; | ||
} | ||
@@ -451,0 +451,0 @@ } |
@@ -520,6 +520,6 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.rawAttrs) { | ||
var re = /\b([a-z][a-z0-9\-]*)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig; | ||
var re = /\b([a-z][a-z0-9\-]*)(?:\s*=\s*(?:"([^"]+)"|'([^']+)'|(\S+)))?/ig; | ||
var match = void 0; | ||
while (match = re.exec(this.rawAttrs)) { | ||
attrs[match[1]] = match[3] || match[4] || match[5]; | ||
attrs[match[1]] = match[2] || match[3] || match[4] || ""; | ||
} | ||
@@ -526,0 +526,0 @@ } |
{ | ||
"name": "node-html-parser", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.", | ||
@@ -13,3 +13,4 @@ "main": "dist/index.js", | ||
"build": "npm run clean && npm run ts:cjs && npm run ts:umd", | ||
"dev": "tsc -w" | ||
"dev": "tsc -w", | ||
"pretest": "tsc -m commonjs" | ||
}, | ||
@@ -16,0 +17,0 @@ "keywords": [ |
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
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
123230
7
2284