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