fix: error in matching pattern caused some files to be recognized as magnet links
closes #605
This commit is contained in:
@@ -319,7 +319,7 @@ end
|
|||||||
-- Check if path is a protocol, such as `http://...`.
|
-- Check if path is a protocol, such as `http://...`.
|
||||||
---@param path string
|
---@param path string
|
||||||
function is_protocol(path)
|
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
|
end
|
||||||
|
|
||||||
---@param path string
|
---@param path string
|
||||||
|
Reference in New Issue
Block a user