File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
var htmlparser = require ( 'htmlparser2' ) ;
4
4
var isObject = require ( 'isobject' ) ;
5
+ var objectAssign = require ( 'object-assign' ) ;
5
6
6
7
/**
7
8
* @see https://github.com/fb55/htmlparser2/wiki/Parser-options
@@ -49,7 +50,7 @@ function postHTMLParser(html, options) {
49
50
Object . keys ( attrs ) . forEach ( function ( key ) {
50
51
var obj = { } ;
51
52
obj [ key ] = attrs [ key ] . replace ( / & q u o t ; / g, '"' ) ;
52
- Object . assign ( result , obj ) ;
53
+ objectAssign ( result , obj ) ;
53
54
} ) ;
54
55
55
56
return result ;
Original file line number Diff line number Diff line change 26
26
"homepage" : " https://github.com/posthtml/posthtml-parser#readme" ,
27
27
"dependencies" : {
28
28
"htmlparser2" : " ^3.9.2" ,
29
- "isobject" : " ^2.1.0"
29
+ "isobject" : " ^2.1.0" ,
30
+ "object-assign" : " ^4.1.1"
30
31
},
31
32
"devDependencies" : {
32
33
"chai" : " ^3.3.0" ,
You can’t perform that action at this time.
0 commit comments