id attribute transformers should always return a hash or nil

This commit is contained in:
risk
2011-07-21 15:47:00 -07:00
parent c47a47bc30
commit b2d372ab3c
+2
View File
@@ -63,6 +63,8 @@ module Gollum
return unless node['href']
prefix = env[:config][:id_prefix]
node['href'] = node['href'].gsub(/\A\#(#{prefix})?/, '#'+prefix)
{:node_whitelist => [node]}
end
].freeze