format_url 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 78a247b59f214710a40f2d9b1efe2073537a35f7
4
- data.tar.gz: fcf893da0a3e9a9ec78e29a6577d9dbe27619332
3
+ metadata.gz: 1a072476a63d9b9c31ebc187d95e2439a99ecdfa
4
+ data.tar.gz: d54c57861929e45c0f42e082ce28635c6b708e5d
5
5
  SHA512:
6
- metadata.gz: 2dbc4592f766046d2aa1a4c989bde196c0285bae5cab43aba171c5ea3015119d10950920639b2e1fb2626e236a9b29b15236e4f00f98f9251582d55c9a4f5b23
7
- data.tar.gz: 142052c47856b6183cec0380ede3ef94bd464699c08cace7eac43a4515cf773adc9d2db6966dc222997d1881779349a89a74bf9f6a33ca4c6ed60e2c1cf5f900
6
+ metadata.gz: 3974c69b58526ed3368687819b486cdf0e6c4a582977d04ff801d80d2e75d9e323b3d451bcb02a76a057f44e1aea2d3504be0265a896975115b51abe062ab60d
7
+ data.tar.gz: d106c53071f988a03fb4c54b84e7ee31329939ed45aedb3e3bd2dce3fe443e942d6d87925b794048bda06db71c2fd09d0a1f73839d1b32e0dd75620edb6c9ec0
@@ -1,3 +1,3 @@
1
1
  module FormatUrl
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/format_url.rb CHANGED
@@ -12,6 +12,6 @@ module FormatUrl
12
12
  end
13
13
 
14
14
  def self.url_regexp
15
- /\Ahttps?:\/\/([\A\s:@]+:[\A\s:@]*@)?[-[[:alnum:]]]+(\.[-[[:alnum:]]]+)+\.?(:\d{1,5})?([\/?]\S*)?\z/iux
15
+ /\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[-[[:alnum:]]]+(\.[-[[:alnum:]]]+)+\.?(:\d{1,5})?([\/?]\S*)?\z/iux
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: format_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hopkinson