Skip to content

Commit 11ba7fb

Browse files
committed
fix: incorrect merge defaultOptions, close #47
1 parent 241a343 commit 11ba7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function parserWrapper() {
129129
var option;
130130

131131
function parser(html) {
132-
var opt = Object.assign(defaultOptions, option);
132+
var opt = Object.assign({}, defaultOptions, option);
133133
return postHTMLParser(html, opt);
134134
}
135135

0 commit comments

Comments
 (0)