Skip to content

Commit

Permalink
remove angle brackets on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Mar 23, 2021
1 parent 7c9de23 commit 112ab98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subs2srs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ local function init_platform_windows()
end

self.copy_to_clipboard = function(text)
text = text:gsub("&", "^^^&")
text = text:gsub("&", "^^^&"):gsub("[<>]", "")
mp.commandv("run", "cmd.exe", "/d", "/c", string.format("@echo off & chcp 65001 & echo %s|clip", text))
end

Expand Down

0 comments on commit 112ab98

Please sign in to comment.