Update source/utils/misc.brs

Co-authored-by: Charles Ewert <cewert@gmail.com>
This commit is contained in:
Austin Crandall 2023-06-26 22:32:21 -04:00 committed by GitHub
parent a4de58b00e
commit 5b508e7024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ function isValidAndNotEmpty(input as dynamic) as boolean
end function
' Returns an array from a url of [proto, host, port, subdir/params]
' Proto must be declared or array members will be invalid
' Proto must be declared or array will be empty
function parseUrl(url as string) as object
rgx = CreateObject("roRegex", "^(.*:)//([A-Za-z0-9\-\.]+)(:[0-9]+)?(.*)$", "")
return rgx.Match(url)