node-html-parser 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1042,7 +1042,7 @@ define("nodes/html", ["require", "exports", "css-select", "he", "back", "matcher
1042
1042
  }
1043
1043
  var attrs = {};
1044
1044
  if (this.rawAttrs) {
1045
- var re = /([a-zA-Z()#][a-zA-Z0-9-_:()#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
1045
+ var re = /([a-zA-Z()[\]#][a-zA-Z0-9-_:()[\]#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
1046
1046
  var match = void 0;
1047
1047
  while ((match = re.exec(this.rawAttrs))) {
1048
1048
  var key = match[1];
@@ -709,7 +709,7 @@ var HTMLElement = /** @class */ (function (_super) {
709
709
  }
710
710
  var attrs = {};
711
711
  if (this.rawAttrs) {
712
- var re = /([a-zA-Z()#][a-zA-Z0-9-_:()#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
712
+ var re = /([a-zA-Z()[\]#][a-zA-Z0-9-_:()[\]#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
713
713
  var match = void 0;
714
714
  while ((match = re.exec(this.rawAttrs))) {
715
715
  var key = match[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-html-parser",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",