From 5e9f6df02b8ad8649791acbc32bef3e261e468ca Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 6 May 2024 22:09:45 +0200 Subject: add another unrecognized character to copy-subs ignore --- .config/mpv/scripts/copy-subs.lua | 1 + 1 file changed, 1 insertion(+) (limited to '.config/mpv/scripts/copy-subs.lua') diff --git a/.config/mpv/scripts/copy-subs.lua b/.config/mpv/scripts/copy-subs.lua index 305299a..3b8d15f 100644 --- a/.config/mpv/scripts/copy-subs.lua +++ b/.config/mpv/scripts/copy-subs.lua @@ -6,6 +6,7 @@ function copy() -- remove some specific unicode characters sub = sub:gsub('\u{27a1}', '') sub = sub:gsub('\u{fffd}', '') + sub = sub:gsub('\u{3013}', '') sub = sub:gsub('\n', ' ') -- replace newlines with space sub = sub:gsub('\'', '\'\\\'\'') -- escape single quotes -- cgit v1.2.3