lhj-tools 0.2.70 → 0.2.71

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: 69043d324a75d0736920413e53feea9866fcbcf70632b93bce05586533496a78
4
- data.tar.gz: afbb9a634140e0995858df548b5ee8a35e57098397764893828f2fbc11fc7781
3
+ metadata.gz: e9f34207902253cd7e343b132210af875a99f7b0cbc17a14f811e4044af781ce
4
+ data.tar.gz: c85d8572ea5c1e480753aa2a1f8f842882ae6ef374cb869f98789583adbea7fb
5
5
  SHA512:
6
- metadata.gz: 58c6ef833505fdc7163305bf423b72a37c15a943df6e95530fd4f5e495e46e599f99ba83ba2f9d031ec52b872817717b85842d73601060bcdd11460efb6aa404
7
- data.tar.gz: a8e6a8dc5b49fe21309a9a6f1fbdb985b6bae46b6e9938cc2ba185886e411e0f96f71224921b642cfca0623d6afd5910ca354cb3e57490fddfff95a6dd8a6666
6
+ metadata.gz: ee0d0dce1b75b11a7d7894d24e161698e03e438c1d61f60058c3acda029cccc7f1cbf0e02352fa49cee03c7ec94b8658a407bf5a14a1b8514b00bd78718619ce
7
+ data.tar.gz: f7f2d0d2f5d4916b3b363aeedb588c00814f7b4ae89fb1264841b226365d5574a8743b7468b9f63aad57d9139cf0ea938684c16143b0b789e5086cc4adfd4d49
@@ -96,7 +96,7 @@ module Lhj
96
96
  cn_str = row[cn_c]
97
97
  hk_str = row[cn_c]
98
98
  # cn_str = Lhj::Trans::Helper.instance.trans_zh_cn_str(cn_str) if trans_cn
99
- hk_str = Lhj::Trans::Helper.instance.trans_zh_hk_str(hk_str)
99
+ hk_str = Lhj::Trans::Helper.instance.trans_zh_hk_str(hk_str) if hk_str&.length&.positive?
100
100
  @key_map[key] = { key: key, cn: cn_str, hk: hk_str, en: row[en_c] } unless key =~ /[\u4e00-\u9fa5]/
101
101
  end
102
102
  end
data/lib/lhj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.70'
4
+ VERSION = '0.2.71'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhj-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.70
4
+ version: 0.2.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian