Skip to content

Commit 009fe5a

Browse files
authored
Merge pull request #36 from posthtml/milestone-0.4.2
Milestone 0.4.2
2 parents 37f81ea + cf95d62 commit 009fe5a

4 files changed

Lines changed: 1907 additions & 1261 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_js:
44
- "stable"
55
- "lts/*"
66
- 6
7-
- 4
87

98
env:
109
global:

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var Parser = require('htmlparser2/lib/Parser');
4-
var objectAssign = require('object-assign');
54

65
/**
76
* @see https://github.com/fb55/htmlparser2/wiki/Parser-options
@@ -64,7 +63,7 @@ function postHTMLParser(html, options) {
6463
Object.keys(attrs).forEach(function(key) {
6564
var obj = {};
6665
obj[key] = attrs[key].replace(/"/g, '"');
67-
objectAssign(result, obj);
66+
Object.assign(result, obj);
6867
});
6968

7069
return result;
@@ -130,7 +129,7 @@ function parserWrapper() {
130129
var option;
131130

132131
function parser(html) {
133-
var opt = objectAssign(defaultOptions, option);
132+
var opt = Object.assign(defaultOptions, option);
134133
return postHTMLParser(html, opt);
135134
}
136135

0 commit comments

Comments
 (0)