aboutsummaryrefslogtreecommitdiff
path: root/docs/templates.md
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-17 21:54:53 +0100
committerpraschke <stel@comfy.monster>2023-10-17 21:54:53 +0100
commit68ff30006edcd0dca44326780d34a6ca39f65157 (patch)
tree53f1006aab41a1f7b8a85d1a797376dba8ebdc5c /docs/templates.md
parent376a1b096874e601296321fa6307836e2736a05c (diff)
fix: regexReplace and regexMatch
joining the args together without cutting out the options arg can add an '[object Object]' into the result.
Diffstat (limited to 'docs/templates.md')
-rw-r--r--docs/templates.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/templates.md b/docs/templates.md
index ce1e8d7e..e0ea0861 100644
--- a/docs/templates.md
+++ b/docs/templates.md
@@ -147,7 +147,7 @@ Uses a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScr
<summary>Syntax:</summary>
<code>{{#regexReplace <i>regex</i> <i>replacement</i> <i>[flags]</i>}}<i>text-to-modify</i>{{/regexReplace}}</code><br>
- <code>{{#regexReplace <i>regex</i> <i>replacement</i> <i>[flags]</i> <i>[text-to-modify]...</i>}}{{/regexReplace}}</code><br>
+ <code>{{regexReplace <i>regex</i> <i>replacement</i> <i>[flags]</i> <i>[text-to-modify]...</i>}}</code><br>
* _`regex`_ <br>
The raw string used to create the regular expression. This value is passed to the [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/RegExp) constructor.
@@ -181,7 +181,7 @@ Uses a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScr
<summary>Syntax:</summary>
<code>{{#regexMatch <i>regex</i> <i>[flags]</i>}}<i>text-to-modify</i>{{/regexMatch}}</code><br>
- <code>{{#regexMatch <i>regex</i> <i>[flags]</i> <i>[text-to-modify]...</i>}}{{/regexMatch}}</code><br>
+ <code>{{regexMatch <i>regex</i> <i>[flags]</i> <i>[text-to-modify]...</i>}}</code><br>
* _`regex`_ <br>
The raw string used to create the regular expression. This value is passed to the [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/RegExp) constructor.