Sha256: 161e39f67fe7d9165a212115b6944c34e25a7a8b9dac01394f927e06ae21530f
Contents?: true
Size: 462 Bytes
Versions: 13
Compression:
Stored size: 462 Bytes
Contents
module Dhalang # Contains common logic for URL's. class UrlUtils # Raises an error if the given URL cannot be used for navigation with Puppeteer. # # @param [String] url The url to validate def self.validate(url) if (url !~ URI::DEFAULT_PARSER.regexp[:ABS_URI]) raise URI::InvalidURIError, 'The given url was invalid, use format http://www.example.com' end end end end
Version data entries
13 entries across 13 versions & 1 rubygems