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 +1 -1
- package/dist/nodes/html.js +1 -1
- package/package.json +1 -1
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];
|
package/dist/nodes/html.js
CHANGED
|
@@ -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