summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordvdvgt <40773635+dvdvgt@users.noreply.github.com>2023-05-03 11:41:50 +0200
committerGitHub <noreply@github.com>2023-05-03 11:41:50 +0200
commitbe3c4d7876f11d70eab60b8c3ae6199b7fd035fe (patch)
tree6e0504361fc2f965a1448d1521f09f1382e0164a /docs
parentedc0632d8c9d7a17cc795a57de27c6b22a748158 (diff)
[Feature] Allow function as argument for string.replace (#944)
Diffstat (limited to 'docs')
-rw-r--r--docs/src/reference/types.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index 0714d1f7..9448feed 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -361,8 +361,8 @@ string and returns the resulting string.
- pattern: string or regex (positional, required)
The pattern to search for.
-- replacement: string (positional, required)
- The string to replace the matches with.
+- replacement: string or function (positional, required)
+ The string to replace the matches with or a function that is passed a match dictionary if a regex was used.
- count: integer (named)
If given, only the first `count` matches of the pattern are placed.
- returns: string