[asterisk-commits] murf: trunk r42224 - /trunk/funcs/func_strings.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Sep 6 21:23:00 MST 2006


Author: murf
Date: Wed Sep  6 23:23:00 2006
New Revision: 42224

URL: http://svn.digium.com/view/asterisk?rev=42224&view=rev
Log:
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.

Modified:
    trunk/funcs/func_strings.c

Modified: trunk/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_strings.c?rev=42224&r1=42223&r2=42224&view=diff
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Wed Sep  6 23:23:00 2006
@@ -142,8 +142,12 @@
 static struct ast_custom_function regex_function = {
 	.name = "REGEX",
 	.synopsis = "Regular Expression",
-	.desc =  "Returns 1 if data matches regular expression, or 0 otherwise.",
-	.syntax = "REGEX(\"<regular expression>\" <data>)",
+	.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>)",
 	.read = regex,
 };
 



More information about the asterisk-commits mailing list