mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
12 lines
282 B
Lua
12 lines
282 B
Lua
--- Validate a URL (basic check)
|
|
---@param url? string URL to validate
|
|
---@return boolean Whether URL is valid
|
|
local function is_valid_url(url)
|
|
if not url or url == "" then
|
|
return false
|
|
end
|
|
return string.match(url, "^https?://") ~= nil
|
|
end
|
|
|
|
return is_valid_url
|