From 5c43277e4f2fd1b90d3a51f140f3f4be04e5a06c Mon Sep 17 00:00:00 2001 From: Abigail Date: Thu, 21 Jan 2021 22:20:20 +0100 Subject: Skip any whitespace, not just spaces --- challenge-096/abigail/lua/ch-1.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenge-096/abigail/lua/ch-1.lua b/challenge-096/abigail/lua/ch-1.lua index 7ff3b94814..c2de0434f6 100755 --- a/challenge-096/abigail/lua/ch-1.lua +++ b/challenge-096/abigail/lua/ch-1.lua @@ -13,7 +13,7 @@ for line in io . lines () do -- Extract words and put them into an array, in reverse. -- local words = {} - for str in string . gmatch (line, "[^ ]+") do + for str in string . gmatch (line, "[^%s]+") do table . insert (words, 1, str) end -- cgit