diff --git a/scripts/uosc.lua b/scripts/uosc.lua index 1d645d4..c9587fd 100644 --- a/scripts/uosc.lua +++ b/scripts/uosc.lua @@ -738,7 +738,7 @@ end -- Check if path is a protocol, such as `http://...` ---@param path string function is_protocol(path) - return type(path) == 'string' and path:match('^%a[%a%d-_]+://') ~= nil + return type(path) == 'string' and (path:match('^%a[%a%d-_]+://') ~= nil or path:match('^%a[%a%d-_]+:\\?') ~= nil) end ---@param path string