From 9325d65cebd561390f8e0396e5ac5a1c30e18756 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sat, 18 Sep 2021 14:08:09 +0200 Subject: [PATCH] Fix text.trim_spacing --- text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.lua b/text.lua index 0a8d987..fdfc255 100644 --- a/text.lua +++ b/text.lua @@ -58,7 +58,7 @@ end trim_right = trim_end function trim_spacing(text) - return text:match"%s*(.-)%s*" + return text:match"^%s*(.-)%s*$" end local inputstream_metatable = {