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 +4 -4
- data/lib/linkify-it-rb/index.rb +1 -1
- data/lib/linkify-it-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 296b9d57ee2e27c227876ed70cf4ea5d24764e1f
|
4
|
+
data.tar.gz: 12b466103e584672eb59e4842dcdfb8c1b558580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7489a676fa2bd5cb364fb8c0152b1b33b47cc11bbe34f03a8604ed901d63c7ecee09075c2ee60901de9c27c1a410b763b6f44a233499b3f2656fc28a86cc7457
|
7
|
+
data.tar.gz: 1f1c175f4be65ed8f98480703073788031d5a135fae59226b9140d0efa40e600ea6d44be8195f5ca715555b7e8c0c8ef37c67e6a14d1027746545121a401d285
|
data/lib/linkify-it-rb/index.rb
CHANGED
@@ -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 =
|
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
|