Skip to content

Commit

Permalink
don't re-register tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Jul 28, 2016
1 parent 7712ab5 commit 7b2f464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/metaheader.rb
Expand Up @@ -236,6 +236,7 @@ def parse(line)
end

def register(tag)
return if has? tag
key = tag.name.downcase.gsub(/[^\w]/, '_').to_sym
@data[key] = tag
end
Expand Down

0 comments on commit 7b2f464

Please sign in to comment.