fix: rename links with spaces (closes #117)

This commit is contained in:
Lambtho
2022-04-28 10:21:45 +02:00
parent 90a99a41f6
commit 10df87abae

View File

@@ -313,11 +313,11 @@ local function recursive_substitution(dir, old, new)
sedcommand = "sed -i ''"
end
local replace_cmd = "rg -l -t markdown '"
local replace_cmd = "rg -0 -l -t markdown '"
.. old
.. "' "
.. dir
.. " | xargs "
.. " | xargs -0 "
.. sedcommand
.. " 's|"
.. old