mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 06:26:41 +00:00
With respect to bug 7862, the syntax and description are misleading to users. the syntax included a space after the double quotes between the regex and the data to match. I removed this from the function doc, and added some verbage to make this crystal clear, I hope.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -142,7 +142,11 @@ static int regex(struct ast_channel *chan, char *cmd, char *parse, char *buf,
|
|||||||
static struct ast_custom_function regex_function = {
|
static struct ast_custom_function regex_function = {
|
||||||
.name = "REGEX",
|
.name = "REGEX",
|
||||||
.synopsis = "Regular Expression",
|
.synopsis = "Regular Expression",
|
||||||
.desc = "Returns 1 if data matches regular expression, or 0 otherwise.",
|
.desc =
|
||||||
|
"Returns 1 if data matches regular expression, or 0 otherwise.\n"
|
||||||
|
"Please note that the double quotes separating the expression from the data\n"
|
||||||
|
"should not have any neighboring spaces, either before or after, unless you\n"
|
||||||
|
"intend them to be in either the expression or the data!\n",
|
||||||
.syntax = "REGEX(\"<regular expression>\"<data>)",
|
.syntax = "REGEX(\"<regular expression>\"<data>)",
|
||||||
.read = regex,
|
.read = regex,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user