loco-liquid-filters 0.0.12 → 0.0.13

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.
@@ -1,7 +1,7 @@
1
1
  module Loco
2
2
  module Liquid
3
3
  module Filters
4
- VERSION = "0.0.12"
4
+ VERSION = "0.0.13"
5
5
  end
6
6
  end
7
7
  end
@@ -58,6 +58,15 @@ module Loco
58
58
  JSON.parse(resp.body)
59
59
  end
60
60
  end
61
+
62
+ def replaceURLStringWithHref(string)
63
+ urls = URI.extract(string)
64
+ urls = urls.uniq
65
+ urls.each do[u]
66
+ string.gsub(u,"<a href="+u+">"+u+"</a>")
67
+ end
68
+ return string
69
+ end
61
70
  end
62
71
  end
63
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loco-liquid-filters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: