Skip to content

Commit 04200e6

Browse files
authored
Merge pull request #29 from posthtml/milestone-0.3.3
fix: icorrect concat directives
2 parents 4de93bb + 137aa45 commit 04200e6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function postHTMLParser(html, options) {
2626
};
2727

2828
function parserDirective(name, data) {
29-
var directives = objectAssign(defaultDirectives, options.directives);
29+
var directives = [].concat(defaultDirectives, options.directives || []);
3030
var last = bufArray.last();
3131

3232
for (var i = 0; i < directives.length; i++) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-parser",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Parse HTML/XML to PostHTMLTree",
55
"keywords": [
66
"html",

0 commit comments

Comments
 (0)