We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df66e8d commit 8083f07Copy full SHA for 8083f07
index.js
@@ -1,7 +1,6 @@
1
'use strict';
2
3
var Parser = require('htmlparser2/lib/Parser');
4
-var objectAssign = require('object-assign');
5
6
/**
7
* @see https://github.com/fb55/htmlparser2/wiki/Parser-options
@@ -64,7 +63,7 @@ function postHTMLParser(html, options) {
64
63
Object.keys(attrs).forEach(function(key) {
65
var obj = {};
66
obj[key] = attrs[key].replace(/"/g, '"');
67
- objectAssign(result, obj);
+ Object.assign(result, obj);
68
});
69
70
return result;
@@ -130,7 +129,7 @@ function parserWrapper() {
130
129
var option;
131
132
function parser(html) {
133
- var opt = objectAssign(defaultOptions, option);
+ var opt = Object.assign(defaultOptions, option);
134
return postHTMLParser(html, opt);
135
}
136
0 commit comments