Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lua/flatten/core.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
local M = {}

local function path_is_absolute(path)
path = string.gsub(path, "^%s+://", "")
if string.find(path, "^%a[%w.+-]*://") then
return true
end

if jit.os == "Windows" then
return string.find(path, "^%a:") ~= nil
Expand Down