Commit: 112ab98d42b35eda6ad174bf3e138b855cdd3e4a
Parent: 7c9de23c5c57b4e8083cd738357ebb85beca3572
Author: Ren Tatsumoto
Date: Tue, 23 Mar 2021 14:54:24 +0300
remove angle brackets on windows
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -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