Skip to content

Commit

Permalink
Support unix file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemason committed Jun 3, 2022
1 parent 0e3c614 commit 0d69c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ouroboros/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end

-- Returns the Path, Filename, and Extension as 3 values
function M.split_filename(file)
local path, filename, extension = string.match(file, "(.-)([^\\]-)([^\\%.]+)$")
local path, filename, extension = string.match(file, "(.-)([^\\/]-)([^\\/%.]+)$")

-- pop the "." off the end of the filename - wouldn't need if my regex were better
filename = filename:sub(1,-2)
Expand Down

0 comments on commit 0d69c0e

Please sign in to comment.