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:47 -04:00 committed by GitHub
parent 5b508e7024
commit ac2c1f5f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,8 @@ function isValidAndNotEmpty(input as dynamic) as boolean
end if
end function
' Returns an array from a url of [proto, host, port, subdir/params]
' Returns an array from a url - [ url, proto, host, port, subdir/params ]
' If port or subdir are not found, an empty string will be added to the array
' 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]+)?(.*)$", "")