Skip to content

Commit 054d575

Browse files
authored
Merge pull request #69 from posthtml/milestone-1.3.1
fix: if nodes has string, close #68
2 parents 8fd2616 + c1ec0f4 commit 054d575

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function walk (opts, nodes) {
161161
let skip
162162

163163
// loop through each node in the tree
164-
return nodes.reduce((m, node, i) => {
164+
return [].concat(nodes).reduce((m, node, i) => {
165165
// if we're skipping this node, return immediately
166166
if (skip) { skip--; return m }
167167

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-expressions",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Expressions Plugin for PostHTML",
55
"engines": {
66
"node": ">=10"

0 commit comments

Comments
 (0)