From a06136812f8ecc42d8eea91260cb80a82afbc8f7 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 17 Oct 2024 00:34:42 +0100 Subject: [PATCH] split_shell: use @example --- worldeditadditions_core/utils/strings/split_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/utils/strings/split_shell.lua b/worldeditadditions_core/utils/strings/split_shell.lua index c60f7fa..cc07a80 100644 --- a/worldeditadditions_core/utils/strings/split_shell.lua +++ b/worldeditadditions_core/utils/strings/split_shell.lua @@ -32,7 +32,7 @@ end -- - Unclosed quotes are treated as lasting until the end of the string. -- - Empty arguments (i.e., consecutive whitespaces) are ignored. -- --- Examples: +-- @example Different sample inputs / output pairs -- split_shell("arg1 arg2 arg3") --> {"arg1", "arg2", "arg3"} -- split_shell("arg1 \"arg2 with spaces\" arg3") --> {"arg1", "arg2 with spaces", "arg3"} -- split_shell("arg1 'arg2\\'s value' arg3") --> {"arg1", "arg2's value", "arg3"}