From 112ab98d42b35eda6ad174bf3e138b855cdd3e4a Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Tue, 23 Mar 2021 14:54:24 +0300 Subject: [PATCH] remove angle brackets on windows --- subs2srs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subs2srs.lua b/subs2srs.lua index 53b4c11..88199bb 100644 --- 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