metanorma-iso 2.6.1 → 2.6.2

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: 7c067cd90bfc946d6c179fba63a5f83cc0f803aabf6b1ab44c3ae81bd3a948ed
4
- data.tar.gz: 40effc5bdc15f1e0a869b39e211bb2a2355938f58a39e5e46b04358c35c44d38
3
+ metadata.gz: 85dd2f0b01b3caeba6d25048c6fa0b50776406891f5fd8b45e16b4b4f69951fd
4
+ data.tar.gz: 4a196c7e691bdd0be6d6eac55c8c1cb75b4d80d4922de8a25f6106b2c5ab0633
5
5
  SHA512:
6
- metadata.gz: 714502eb99f9d9ad48d2b9c4c43c77b00ebcde0d632496a1cbcc8d3ee37345f60322203f8ed76c806b3b6d7a55da86ea44be693379c82e8f8687f3336ecc8bd1
7
- data.tar.gz: f0e71370ae6cfa856e8c533fdb1f87ee61cd62deb20c083e6d9ce15a5b69b4300e10228b67d8cfdc6152119d334354fc8088b92133ecc7359e6082f8a54cbddd
6
+ metadata.gz: 1eb03bf96ccec2d8c609567c7637a2a6c1e5e85e89e1af67b7fdc39f91cacdc363161300c9c2a2cecfa81112dacddbf571835ffab5a79d367f0d7750fb951f13
7
+ data.tar.gz: 88813a9ab5b8fa5e6a060a8a4073211eb5454de8ade8c65c01b3dbb675ea366c2a729e31c70602d6c72c8b68eae269ed0bd233026f3ec04db8a4066b0c4dfb45
@@ -138,7 +138,7 @@ module IsoDoc
138
138
  if @xrefs.anchor(target, :type) == "listitem" &&
139
139
  !@xrefs.anchor(target, :refer_list)
140
140
  nested_xref = "%1 %2"
141
- container_label = @xrefs.anchor(container, :label)
141
+ n = @xrefs.anchor(container, :label) and container_label = n
142
142
  end
143
143
  [nested_xref, container_label]
144
144
  end
@@ -49,7 +49,7 @@ module Metanorma
49
49
  params2 = iso_id_params_add(node)
50
50
  num = node.attr("docnumber")
51
51
  orig = node.attr("updates") || node.attr("adopted-from")
52
- /^\d+$/.match?(num) or orig ||= num
52
+ /[[:alpha:]]/.match?(num) and orig ||= num
53
53
  orig and orig_id = orig_id_parse(orig)
54
54
  iso_id_params_resolve(params, params2, node, orig_id)
55
55
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "2.6.1".freeze
3
+ VERSION = "2.6.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc