Skip to content

Commit

Permalink
Merge pull request #389 from stevehill1981/patch-1
Browse files Browse the repository at this point in the history
Handle odd numbers of NodeFilters to be configured
  • Loading branch information
gjtorikian authored Dec 28, 2023
2 parents 6c9d27e + 74ef050 commit 62b4aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/html_pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def call(text, context: {}, result: {})
end
end

result = result.merge(Hash[*@node_filters.collect(&:result).flatten])
result = result.merge(@node_filters.collect(&:result).reduce({}, :merge))
@node_filters.each(&:reset!)

result
Expand Down
2 changes: 1 addition & 1 deletion lib/html_pipeline/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class HTMLPipeline
VERSION = "3.0.0"
VERSION = "3.0.1"
end

0 comments on commit 62b4aaa

Please sign in to comment.