Skip to content

Commit

Permalink
handle curly quotes (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-js authored May 20, 2024
1 parent 4ebe150 commit 72fdddf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ self.tmp_dir = function()
end

self.copy_to_clipboard = function(text)
mp.commandv("run", "powershell", "-command", string.format('Set-Clipboard -Value "%s"', text:gsub('"', '`"')))
mp.commandv("run", "powershell", "-command",
string.format('Set-Clipboard -Value "%s"', text:gsub('"', '`"'):gsub('', '`“'):gsub('', '`”'))
)
end

self.curl_request = function(url, request_json, completion_fn)
Expand Down

0 comments on commit 72fdddf

Please sign in to comment.