Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
11
research/chatwoot/lib/url_helper.rb
Normal file
11
research/chatwoot/lib/url_helper.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
require 'uri'
|
||||
module UrlHelper
|
||||
def url_valid?(url)
|
||||
url = begin
|
||||
URI.parse(url)
|
||||
rescue StandardError
|
||||
false
|
||||
end
|
||||
url.is_a?(URI::HTTP) || url.is_a?(URI::HTTPS)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user