metanorma-iso 2.7.5 → 2.7.6

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: 4244af700febe2c242bd74e408e58db7026f0894351a1fae647b295f75c08b78
4
- data.tar.gz: 4109fa063a6563e41f5111255a1b0e668413c962ca734c2b48915c77dd2814f7
3
+ metadata.gz: 1ea605cb2d2600317ee12d4a926aee3231e8cd789cc422990e4ea7519f5b39a4
4
+ data.tar.gz: 615fdbf41b05dfe73a2e052d37b735a535bc4f8f990d99d7670562196339fd89
5
5
  SHA512:
6
- metadata.gz: 64b75086e5b4040723c3e7578786d567b9e4f629ca8e5bfc2bf95b61e0923e672c20589fd47ab52c8a8bfc3c3aa518fc178f13ad246a232210d9e7ab8b179546
7
- data.tar.gz: ba3ce0746257d22b698d737640a11b6401084c726aae4e8b926cc23c164f11323d576e7df997ad0c3bda213f069baf57ca7f700813b7a99ba69be9ad89ee119e
6
+ metadata.gz: 6ca74e3ef2122b12b2e4ccb28f140631f83de54db8d2fda891eaee9e17849b3b8faf7eddb375dfafa6303cb4abb0042161ba0a45fbba86857a44b2a0521fcc9a
7
+ data.tar.gz: c6120ebc9efd5f703261f2e47e3a28c0a2805529c5a1eda44451fccf0d0aaf5264a4298ff7babcc564f4869392b2cad9a1e4be51fe725dd24858f2a5d9695f2a
@@ -50,9 +50,8 @@ module IsoDoc
50
50
  ret = index_entries_head(words[primary],
51
51
  index.dig(words[primary], nil, nil),
52
52
  index_entries_opt)
53
- words2 = index[words[primary]]&.keys&.reject do |k|
54
- k.nil?
55
- end&.each_with_object({}) { |w, v| v[w.downcase] = w }
53
+ words2 = index[words[primary]]&.keys&.compact
54
+ &.each_with_object({}) { |w, v| v[w.downcase] = w }
56
55
  unless words2.empty?
57
56
  ret += "<ul>"
58
57
  words2.keys.localize(@lang.to_sym).sort.to_a.each do |w|
@@ -67,9 +66,8 @@ module IsoDoc
67
66
  ret = index_entries_head(words[secondary],
68
67
  index.dig(words[secondary], nil),
69
68
  index_entries_opt)
70
- words3 = index[words[secondary]]&.keys&.reject do |k|
71
- k.nil?
72
- end&.each_with_object({}) { |w, v| v[w.downcase] = w }
69
+ words3 = index[words[secondary]]&.keys&.compact
70
+ &.each_with_object({}) { |w, v| v[w.downcase] = w }
73
71
  unless words3.empty?
74
72
  ret += "<ul>"
75
73
  words3.keys.localize(@lang.to_sym).sort.to_a.each do |w|