aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-01-21 22:20:20 +0100
committerAbigail <abigail@abigail.be>2021-01-21 22:20:20 +0100
commit5c43277e4f2fd1b90d3a51f140f3f4be04e5a06c (patch)
tree71dd1022084be0853af3a31b08c3af4ebb13cf2a
parent0a3ffcf16f7278c15d13d9c0c6e90de653a811e5 (diff)
downloadperlweeklychallenge-club-5c43277e4f2fd1b90d3a51f140f3f4be04e5a06c.tar.gz
perlweeklychallenge-club-5c43277e4f2fd1b90d3a51f140f3f4be04e5a06c.tar.bz2
perlweeklychallenge-club-5c43277e4f2fd1b90d3a51f140f3f4be04e5a06c.zip
Skip any whitespace, not just spaces
-rwxr-xr-xchallenge-096/abigail/lua/ch-1.lua2
1 files changed, 1 insertions, 1 deletions
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