metanorma-utils 1.6.1 → 1.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: 4a36ca58dc687a7608f94df44a4f977a7571a687c196217f743af012f05e25b8
4
- data.tar.gz: 6a3f38cf066b108a4ace75fa1946b696382963e63212567001eddabaa4a0dfe0
3
+ metadata.gz: 240c5f31b6dad1797c4beba192aee96bd27bb1102c0204f5519e352732e57e6e
4
+ data.tar.gz: 35ca70ee292b96c4fc707ea8a921da6376fa4b5b1742b9e1dbd01f440573da5f
5
5
  SHA512:
6
- metadata.gz: 98a4fce07065b0b9c03a78d140c64313608ac89bf2f05d93d09f50b196bed93dfc83c54ddcb62474fbd965f22430ad4c5fbba975eb1442796e1e478f10d9433e
7
- data.tar.gz: 890a86a2c8c1835e7a4d0bf41cc6b1f77667150b890a1340eaf1d1a8290c8a33560a0ec111af269771fddc0bfddca66c57902c5e7ba7faf1fbbb3f8907c6c24c
6
+ metadata.gz: 58d0a2622468e63bf96d5248d07adcc76064db527a42029b5e559f58cddd8644340d7304dfc18c1537d411e37be51e0953acc08d23c665286646aa0725d184b1
7
+ data.tar.gz: e45e4a67bfde7aad5bf8e6935fade99ee40db4c6e6d0bb41045dc12344aea5a2ab1c999f2713e1a939643221c632e69e86e729cd982ea50d0014053da01af6d1
data/lib/utils/main.rb CHANGED
@@ -135,7 +135,7 @@ module Metanorma
135
135
  # with soft hyphen
136
136
  def break_up_long_str(text, threshold = LONGSTR_THRESHOLD, nopunct = LONGSTR_NOPUNCT)
137
137
  /^\s*$/.match?(text) and return text
138
- text.split(/(?=\s)/).map do |w|
138
+ text.split(/(?=(?:\s|-))/).map do |w|
139
139
  if /^\s*$/.match(text) || (w.size < threshold) then w
140
140
  else
141
141
  w.scan(/.{,#{threshold}}/o).map.with_index do |w1, i|
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.6.1".freeze
3
+ VERSION = "1.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-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.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-10-09 00:00:00.000000000 Z
11
+ date: 2023-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor