"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const validateURL = (url) => {
    // Regular expression pattern for URL validation
    // var pattern = new RegExp(
    //   '^(https?:\\/\\/)?' + // protocol
    //     '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
    //     '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR IP (e.g. 127.0.0.1)
    //     '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
    //     '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
    //     '(\\#[-a-z\\d_]*)?$',
    //   'i',
    // ); // fragment locator
    var pattern = new RegExp('^(https?://)', 'i');
    return pattern.test(url);
};
exports.default = validateURL;
