wolf_core 1.0.35 → 1.0.37

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: acd8c1fb76b03ed8a71b1f50f24d12ac5f2ec232a51f912fbc1df195211ff0cb
4
- data.tar.gz: dacbb819a52b7593e245e5639beb005c87aae727f9477f17c7298163eb426a5a
3
+ metadata.gz: 0077fb5214aa850dcb6d0c42d5d17598f0680f2e9190ad0f6957294e685e26f7
4
+ data.tar.gz: 8a7d1a2dcf48682cb84698804f7c9d33df25b6b7c94628224f904fdaed46ea7b
5
5
  SHA512:
6
- metadata.gz: 73e6d10b341fcf8eb708a9b891ed61dd7b6cabcaefd5826bedefea2ab41790fe8740b18210a94533f9a0dccf683d773e5795149c5a15caada1e8c78fb5a84d88
7
- data.tar.gz: cfc8803180c94839a8d3514f4d277766617995decbfd0f5b2ed07cff79ba8fe21f1d3cb8d7d505ee97f753374f14a372baecdd644707247727b228f573ac5d15
6
+ metadata.gz: 29e69a0fd509966dad7a64e4235d9d3807bc7ef25ee058b144deba1fb5e4295acaf567273d42b300a704921f27b6600d1a386ede3dc7222002448d1bfd738f9b
7
+ data.tar.gz: ca2001384034ffa0cab7c620f945a64be6657a0c375288810bba52d3b8972f81a203e6bb832704fd299a91799ffe7b4adee6925669579839feba1f24a0931f4c
@@ -2,12 +2,13 @@ module WolfCore
2
2
  module Barton
3
3
  module Parsing
4
4
  def split_address(address_string)
5
+ address_string = address_string&.dup
5
6
  address_string ||= ''
6
7
  address = { street: nil, city: nil, state: nil, zip: nil }
7
8
  city_and_state_regex_found = false
8
9
 
9
10
  city_and_state_regex = /\b([A-Za-z\s]+),\s*([A-Za-z]{2})\b/
10
- zip_regex = /\b\d{5}(?:-\d{4})?\b/
11
+ zip_regex = /\d{5}(?:-\d{4})?$/
11
12
  street_regex = /\A([^,]+)/
12
13
  state_regex = /\b[A-Za-z]{2}\b/
13
14
  city_regex = /\b[a-zA-Z0-9\s]{2,}\b/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.35"
4
+ VERSION = "1.0.37"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.35
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty