Skip to content

Commit

Permalink
fix(dirman.expand_path): search for both $/ and $\ in links to su…
Browse files Browse the repository at this point in the history
…pport windows paths (#830)
  • Loading branch information
vhyrro committed May 2, 2023
1 parent ecfb426 commit 160d40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/dirman/utils/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local module = neorg.modules.create("core.dirman.utils")
module.public = {
expand_path = function(path)
-- Expand special chars like `$`
local custom_workspace_path = path:match("^%$([^/]*)/")
local custom_workspace_path = path:match("^%$([^/\\]*)[/\\]")

if custom_workspace_path then
local dirman = neorg.modules.get_module("core.dirman")
Expand Down

0 comments on commit 160d40f

Please sign in to comment.