Commit: 63a223cba54ae52a4605e248f873ae948d89adc5 Parent: 5663826b24c12d4877fdcf4f6ae91eaeb20552b4 Author: Ren Tatsumoto Date: Wed, 26 Aug 2020 09:41:53 +0300 le self-documenting code Diffstat:
| M | subs2srs.lua | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua @@ -145,9 +145,9 @@ local function trim(str) str = escape_quotes(str) if config.nuke_spaces == true and contains_non_latin_letters(str) then - str = string.gsub(str, "%s*", "") + str = remove_all_spaces(str) else - str = string.gsub(str, "^%s*(.-)%s*$", "%1") + str = remove_leading_trailing_spaces(str) end return str