File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33var htmlparser = require ( 'htmlparser2' ) ;
44var isObject = require ( 'isobject' ) ;
5+ var objectAssign = require ( 'object-assign' ) ;
56
67/**
78 * @see https://github.com/fb55/htmlparser2/wiki/Parser-options
@@ -49,7 +50,7 @@ function postHTMLParser(html, options) {
4950 Object . keys ( attrs ) . forEach ( function ( key ) {
5051 var obj = { } ;
5152 obj [ key ] = attrs [ key ] . replace ( / & q u o t ; / g, '"' ) ;
52- Object . assign ( result , obj ) ;
53+ objectAssign ( result , obj ) ;
5354 } ) ;
5455
5556 return result ;
Original file line number Diff line number Diff line change 2626 "homepage" : " https://github.com/posthtml/posthtml-parser#readme" ,
2727 "dependencies" : {
2828 "htmlparser2" : " ^3.9.2" ,
29- "isobject" : " ^2.1.0"
29+ "isobject" : " ^2.1.0" ,
30+ "object-assign" : " ^4.1.1"
3031 },
3132 "devDependencies" : {
3233 "chai" : " ^3.3.0" ,
You can’t perform that action at this time.
0 commit comments