From 1c40ea10f45d58e2727d08df395cc89170a276a9 Mon Sep 17 00:00:00 2001 From: Crow Date: Tue, 29 Apr 2025 06:37:08 +0100 Subject: [PATCH] Format examples correctly --- public/scripts/slash-commands.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index b2f232149..97120ed92 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2163,10 +2163,10 @@ export function initDefaultSlashCommands() {
Example: -
/let x Blue house and green car                         ||
-
/test pattern="green" {{var::x}}    | /echo  |/# true   ||
-
/test pattern="blue" {{var::x}}     | /echo  |/# false  ||
-
/test pattern="/blue/i" {{var::x}}  | /echo  |/# true   ||
+
/let x Blue house and green car                         ||
+
/test pattern="green" {{var::x}}    | /echo  |/# true   ||
+
/test pattern="blue" {{var::x}}     | /echo  |/# false  ||
+
/test pattern="/blue/i" {{var::x}}  | /echo  |/# true   ||
`, })); @@ -2208,12 +2208,12 @@ export function initDefaultSlashCommands() {
Example: -
/let x color_green green lamp color_blue                                                                            ||
-
/match pattern="green" {{var::x}}            | /echo  |/# [ "green" ]                                               ||
-
/match pattern="color_(\\w+)" {{var::x}}     | /echo  |/# [ "color_green", "green" ]                                ||
-
/match pattern="/color_(\\w+)/g" {{var::x}}  | /echo  |/# [ [ "color_green", "green" ], [ "color_blue", "blue" ] ]  ||
-
/match pattern="orange" {{var::x}}           | /echo  |/# null                                                      ||
-
/match pattern="/orange/g" {{var::x}}        | /echo  |/# []                                                        ||
+
/let x color_green green lamp color_blue                                                                            ||
+
/match pattern="green" {{var::x}}            | /echo  |/# [ "green" ]                                               ||
+
/match pattern="color_(\\w+)" {{var::x}}      | /echo  |/# [ "color_green", "green" ]                                ||
+
/match pattern="/color_(\\w+)/g" {{var::x}}   | /echo  |/# [ [ "color_green", "green" ], [ "color_blue", "blue" ] ]  ||
+
/match pattern="orange" {{var::x}}           | /echo  |/# null                                                      ||
+
/match pattern="/orange/g" {{var::x}}        | /echo  |/# []                                                        ||
`, }));