lib/wmap/utils/url_magic.rb
# Simple sanity check on a 'claimed' web site base string.
Simple sanity check on a 'claimed' web site base string.
Simple sanity check on a ' claimed ' web site base string .
def is_site?(url)
	  puts "Validate the website string format for: #{url}" if @verbose
		url=url.strip.downcase
		if is_url?(url)
			if url == url_2_site(url)
				return true
			else
				return false
			end
		else
			puts "Unknown site format: #{url}" if @verbose
			return false
		end
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
		return nil
	end
def is_site? ( url ) puts "Validate the website string format for: #{url}" if @verbose url = url . strip . downcase if is_url? ( url ) if url == url_2_site ( url ) return true else return false end else puts "Unknown site format: #{url}" if @verbose return false end rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return nil end
Simple sanity check on a 'claimed' web site base string.
Simple sanity check on a ' claimed ' web site base string .
url
<not_specific>