Skip to content

Commit b17f7c0

Browse files
committed
fix: icorrect concat directives
1 parent 4de93bb commit b17f7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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++) {

0 commit comments

Comments
 (0)