diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-06 22:09:45 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-06 22:09:45 +0200 |
commit | 5e9f6df02b8ad8649791acbc32bef3e261e468ca (patch) | |
tree | b8a73613f7a842a233c5a7ea225c5b57ba565768 /.config/mpv/scripts/copy-subs.lua | |
parent | 853ea8ad1adc310c9efa0d177a41a1216fd75d9f (diff) |
add another unrecognized character to copy-subs ignore
Diffstat (limited to '.config/mpv/scripts/copy-subs.lua')
-rw-r--r-- | .config/mpv/scripts/copy-subs.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |