From 0d4e30043d676ce2ac508f3db430bb1a9f0a0ea3 Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Mon, 4 Nov 2024 19:28:54 +0100 Subject: [PATCH] fix: better excalidraw path regex --- lua/typstar/excalidraw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/typstar/excalidraw.lua b/lua/typstar/excalidraw.lua index c15a756..f2202da 100644 --- a/lua/typstar/excalidraw.lua +++ b/lua/typstar/excalidraw.lua @@ -33,7 +33,7 @@ end function M.open_drawing() local line = vim.api.nvim_get_current_line() local path = vim.fn.expand('%:p:h') .. - '/' .. string.match(line, 'image%("(.*)' .. string.gsub(cfg.fileExtensionInserted, '%.', '%%%.')) .. + '/' .. string.match(line, '"(.*)' .. string.gsub(cfg.fileExtensionInserted, '%.', '%%%.')) .. '.excalidraw.md' launch_obsidian_open(path) end