linkify-it-rb 1.0.0.2 → 1.0.0.3

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
  SHA1:
3
- metadata.gz: 6c47469712f3d6de315f05caeca61b4c02c52a32
4
- data.tar.gz: 3b51dd1d0651a17efb07cacb27df11615f17683e
3
+ metadata.gz: 296b9d57ee2e27c227876ed70cf4ea5d24764e1f
4
+ data.tar.gz: 12b466103e584672eb59e4842dcdfb8c1b558580
5
5
  SHA512:
6
- metadata.gz: 5ace911d1c5873013966ad4c0438e6d933270d126adf686d2544205b906bd2364fd4290b5585967fa06716798061943161af029d3ece148809eef4f47261fa54
7
- data.tar.gz: 3c3fdf523803ce1641a40ae659fd8d40508469f44843c2d435ef4fc775c7bc6423638a8c32c66cd03f149b3df35f48ea46671e799b0f2c42af61dbfc6299451f
6
+ metadata.gz: 7489a676fa2bd5cb364fb8c0152b1b33b47cc11bbe34f03a8604ed901d63c7ecee09075c2ee60901de9c27c1a410b763b6f44a233499b3f2656fc28a86cc7457
7
+ data.tar.gz: 1f1c175f4be65ed8f98480703073788031d5a135fae59226b9140d0efa40e600ea6d44be8195f5ca715555b7e8c0c8ef37c67e6a14d1027746545121a401d285
@@ -485,7 +485,7 @@ class Linkify
485
485
  # Do minimal possible changes by default. Need to collect feedback prior
486
486
  # to move forward https://github.com/markdown-it/linkify-it/issues/1
487
487
 
488
- match.url = 'http://' + match.url if !match.schema
488
+ match.url = "http://#{match.url}" if match.schema.empty?
489
489
 
490
490
  if (match.schema == 'mailto:' && !(/^mailto\:/i =~ match.url))
491
491
  match.url = 'mailto:' + match.url
@@ -1,5 +1,5 @@
1
1
  module LinkifyIt
2
2
 
3
- VERSION = '1.0.0.2'
3
+ VERSION = '1.0.0.3'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkify-it-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.2
4
+ version: 1.0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Walker