Skip to content

Commit

Permalink
Fix pubmed normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed May 30, 2018
1 parent 18d882f commit cd9c908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/anystyle/normalizer/pubmed.rb
Expand Up @@ -6,10 +6,10 @@ class PubMed < Normalizer
def normalize(item, **opts)
each_value(item) do |_, value|
if (value =~ /PMID:?\s*(\d+)/)
append :pmid, $1
append item, :pmid, $1
end
if (value =~ /PMC(\d+)/)
append :pmcid, $1
append item, :pmcid, $1
end
end
end
Expand Down

0 comments on commit cd9c908

Please sign in to comment.