node-html-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -436,3 +436,3 @@ import { decode } from 'he'; | ||
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; | ||
@@ -439,0 +439,0 @@ while ((match = re.exec(this.rawAttrs))) { |
@@ -937,3 +937,3 @@ 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; | ||
@@ -940,0 +940,0 @@ while ((match = re.exec(this.rawAttrs))) { |
@@ -512,3 +512,3 @@ "use strict"; | ||
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; | ||
@@ -515,0 +515,0 @@ while ((match = re.exec(this.rawAttrs))) { |
{ | ||
"name": "node-html-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -89,3 +89,3 @@ # Fast HTML Parser [![NPM version](https://badge.fury.io/js/node-html-parser.png)](http://badge.fury.io/js/node-html-parser) [![Build Status](https://travis-ci.org/taoqf/node-html-parser.svg?branch=master)](https://travis-ci.org/taoqf/node-html-parser) | ||
Parse given data, return the root element if the givent data is valid, and return false if not valid. | ||
Parse given data, return true if the givent data is valid, and return false if not. | ||
@@ -92,0 +92,0 @@ ## HTMLElement Methods |
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
163513
37