anystyle 1.3.11 → 1.3.12

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcb19c0b21f5cd2ba5409b22ff1105e5186981871c22cf6862633cdaa0150a61
4
- data.tar.gz: b0fcd484f3f87784816bd4e3dc55e059329602f4800242362531cf25c9db7adc
3
+ metadata.gz: 3cbbd4574d32f5e3f418d6de2e774047f410ccc7348a8d078b945083ad35736e
4
+ data.tar.gz: e117eb794cf11be872be7c044fd76066dd4085c94e2930be66c8b4f8b65c26d5
5
5
  SHA512:
6
- metadata.gz: f0df92b83ca46a7464c94c737dd035914d2d67c3269a7ca1730225511f0a57e4fe3530f1cedf8d1a63894650946bb953c178de9f2fd584411d72aa5f62b31290
7
- data.tar.gz: 975dddfcf906495bc0c65b26d816e372bfc9fbf0331f1b08350cb9fc0befcff3754968f620501682f43f0985885d8e4319017458ba28b4092ab34038fe7043f0
6
+ metadata.gz: 1a96dd0676f10b7616355ce4112f145c14f88dbb6ec88d2cc9263fe14f306fef3fcc948e8a2fb90437f4b69c41f82dcb0b8eb59c56bd781a53ffad52916bc03a
7
+ data.tar.gz: 52ebdc56a735e37e22991e950e5e24abd28c52a0ae9f65241677f6ac94a49968567473dd1bf940ab3b22940117f8e5e16d36646d8cbdf454fbb96d45920ef6d9
@@ -4,6 +4,7 @@ module AnyStyle
4
4
  @keys = [:volume, :pages, :date]
5
5
 
6
6
  VOLNUM_RX = '(\p{Lu}?\d+|[IVXLCDM]+)'
7
+
7
8
  def normalize(item, **opts)
8
9
  map_values(item, [:volume]) do |_, volume|
9
10
  volume = StringUtils.strip_html volume
@@ -15,7 +16,7 @@ module AnyStyle
15
16
  end
16
17
 
17
18
  case volume
18
- when /(?:^|\s)#{VOLNUM_RX}\s?\(([^)]+)\)(\s?\d+\p{Pd}\d+)?/
19
+ when /(?:^|\s)#{VOLNUM_RX}\s?\(([^)]+)\)[;:,]?(?:pp?.?)?(\s?\d+\p{Pd}\d+)?/
19
20
  volume = $1
20
21
  append item, :issue, $2
21
22
  append item, :pages, $3.strip unless $3.nil?
@@ -1,3 +1,3 @@
1
1
  module AnyStyle
2
- VERSION = '1.3.11'.freeze
2
+ VERSION = '1.3.12'.freeze
3
3
  end
@@ -13085,4 +13085,10 @@
13085
13085
  <pages>p. 230;</pages>
13086
13086
  <note>faulty translation here ("Verdinglichung" means reification, not "objectification").</note>
13087
13087
  </sequence>
13088
+ <sequence>
13089
+ <author>Bbosa N, Kaleebu P, Ssemwanga D.</author>
13090
+ <title>HIV subtype diversity worldwide.</title>
13091
+ <journal>Curr Opin HIV AIDS.</journal>
13092
+ <volume>2019;14(3):153-60.</volume>
13093
+ </sequence>
13088
13094
  </dataset>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anystyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.11
4
+ version: 1.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bibtex-ruby
@@ -167,7 +167,7 @@ homepage: http://anystyle.io
167
167
  licenses:
168
168
  - BSD-2-Clause
169
169
  metadata: {}
170
- post_install_message:
170
+ post_install_message:
171
171
  rdoc_options:
172
172
  - "--line-numbers"
173
173
  - "--inline-source"
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubygems_version: 3.1.2
192
- signing_key:
192
+ signing_key:
193
193
  specification_version: 4
194
194
  summary: Smart and fast bibliography parser.
195
195
  test_files: []