1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-04-11 11:42:13 +02:00

Update functions descriptions for regexp

This commit is contained in:
Pangoraw 2018-10-06 09:53:44 +02:00
parent e8d82d9396
commit fde8bfcc5d

View File

@ -96,7 +96,7 @@ func RegexSplit(_ context.Context, args ...core.Value) (core.Value, error) {
}
/*
* Splits the given string text into a list of strings, using the separator.
* Test wether the regexp has at least one match in the given text.
* @param text (String) - The string to split.
* @param regex (String) - A regular expression to use for splitting the text.
* @param caseInsensitive (Boolean) - If set to true, the matching will be case-insensitive. The default is false.
@ -130,7 +130,7 @@ func RegexTest(_ context.Context, args ...core.Value) (core.Value, error) {
}
/*
* Splits the given string text into a list of strings, using the separator.
* Replace every substring matched with the regexp with a given string.
* @param text (String) - The string to split.
* @param regex (String) - A regular expression search pattern.
* @param replacement (String) - The string to replace the search pattern with