[sr-dev] git:master: modules_k/textops: fixed typo in starts_with() example

Juha Heinanen jh at tutpro.com
Tue Jun 1 15:41:22 CEST 2010


Module: sip-router
Branch: master
Commit: 2759deb340539d2035fe5c18765f5800eb52180b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2759deb340539d2035fe5c18765f5800eb52180b

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Tue Jun  1 16:15:13 2010 +0300

modules_k/textops: fixed typo in starts_with() example

- Thanks to Inaki for pointing out.

---

 modules_k/textops/README                |    2 +-
 modules_k/textops/doc/textops_admin.xml |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/textops/README b/modules_k/textops/README
index fdd4985..9797b57 100644
--- a/modules_k/textops/README
+++ b/modules_k/textops/README
@@ -882,7 +882,7 @@ if(cmp_istr("$rU at you", "kamailio at YOU"))
 
    Example 1.33. starts_with usage
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
     # do interesting stuff here
 }
diff --git a/modules_k/textops/doc/textops_admin.xml b/modules_k/textops/doc/textops_admin.xml
index 7cd8832..05e8240 100644
--- a/modules_k/textops/doc/textops_admin.xml
+++ b/modules_k/textops/doc/textops_admin.xml
@@ -1224,7 +1224,7 @@ if(cmp_istr("$rU at you", "kamailio at YOU"))
 		<title><function>starts_with</function> usage</title>
 		<programlisting format="linespecific">
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
     # do interesting stuff here
 }




More information about the sr-dev mailing list