From be3c4d7876f11d70eab60b8c3ae6199b7fd035fe Mon Sep 17 00:00:00 2001 From: dvdvgt <40773635+dvdvgt@users.noreply.github.com> Date: Wed, 3 May 2023 11:41:50 +0200 Subject: [Feature] Allow function as argument for string.replace (#944) --- docs/src/reference/types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/src/reference') 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 -- cgit v1.2.3