File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var Parser = require ( 'htmlparser2/lib/Parser' ) ;
4
- var objectAssign = require ( 'object-assign' ) ;
5
4
6
5
/**
7
6
* @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
64
var obj = { } ;
66
65
obj [ key ] = attrs [ key ] . replace ( / & q u o t ; / g, '"' ) ;
67
- objectAssign ( result , obj ) ;
66
+ Object . assign ( result , obj ) ;
68
67
} ) ;
69
68
70
69
return result ;
@@ -130,7 +129,7 @@ function parserWrapper() {
130
129
var option ;
131
130
132
131
function parser ( html ) {
133
- var opt = objectAssign ( defaultOptions , option ) ;
132
+ var opt = Object . assign ( defaultOptions , option ) ;
134
133
return postHTMLParser ( html , opt ) ;
135
134
}
136
135
You can’t perform that action at this time.
0 commit comments