metanorma-plugin-lutaml 0.7.65 → 0.7.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a219a16d1ef8d04a061f15f5e1a267dbec89c860be64ed06e3c9fcb3f655608e
4
- data.tar.gz: c15c55427c29505de786a4d0c5111c20098d89a1279e1e88dfc90a2a4c4ab453
3
+ metadata.gz: b8d40464a30fd18db96d4e7fadc9523442ae1be067ce4ee1d61dc8407823e1a5
4
+ data.tar.gz: fa3fe6aa9238da527a0c70c031856063c798b82c10fc1c6d9a088d9d70b661e6
5
5
  SHA512:
6
- metadata.gz: f0506bdbe474cc96c49164425fab37a59d3af21023a64d23bb83e52c2dbb43336e17b67ded88382724a5b2518613879e63409aceccb355d8e0624c0f3db1007d
7
- data.tar.gz: 47ec10b15ca88e3f6b5f1ee51c0be57cf81e212a208cbb166512d42b34dc14865a4428d91f53c815dd791e01e2bb6941a6d4c024a21ab769525bb7d27a8ababa
6
+ metadata.gz: 4c580e1b41173621091295c131cf297f3fbcc435916c7355095c7649f8739a691d68c8ac668a98a3cf2e94f4fdeed3ded47e07889f651b754c80190df1c4815f
7
+ data.tar.gz: 445402c52455e456c6e867635c53679025314a84c61a49937aa4bad24f7ca41c19ccea4ee5cc7cc8a0b34f08cd0e5839b003958d02ca7900fa1ea89f9cf8b19b
@@ -26,8 +26,12 @@ module Metanorma
26
26
 
27
27
  name = bibitemid.sub(/\Aexpress_/, "")
28
28
  rec = lookup.call(name)
29
- while rec.nil? && name.include?("_")
30
- name = name.sub(/_[^_]+\z/, "")
29
+ # Cut at the LAST underscore: page-suffix chains carry doubled
30
+ # underscores ("..._Annex_D__informative__EXPRESS-G_diagrams"),
31
+ # and a trailing "_" defeats /_[^_]+\z/ entirely - the name
32
+ # would never shrink and the walk would never end (#346).
33
+ while rec.nil? && (idx = name.rindex("_"))
34
+ name = name[0...idx]
31
35
  rec = lookup.call(name)
32
36
  end
33
37
  rec
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.65".freeze
4
+ VERSION = "0.7.66".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.65
4
+ version: 0.7.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-10 00:00:00.000000000 Z
11
+ date: 2026-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor