Skip to content

Commit

Permalink
Fix #101 volume/page normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Mar 16, 2018
1 parent abc8e64 commit cca5710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/anystyle/normalizer/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def normalize(item)
when /(\d+)(?:\.(\d+))?(?:\((\d{4})\))?:(\d.*)/
# "volume.issue(year):pp"
append(item, :volume, $1.to_i)
append(item, :number, $2.to_i) unless $2.nil?
append(item, :issue, $2.to_i) unless $2.nil?
append(item, :year, $3.to_i) unless $3.nil?
$4
else
Expand Down
2 changes: 1 addition & 1 deletion lib/anystyle/normalizer/volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def normalize(item)
when /(\d+)/
$1
else
value
volume
end
end
end
Expand Down

0 comments on commit cca5710

Please sign in to comment.