Module:String/doc: Difference between revisions

Content deleted Content added
DumbBOT (talk | contribs)
removing a protection template from a non-protected page (info)
endswith
Line 367:
== endswith ==
Usage:
: <code><nowiki>{{#invoke:</nowiki>String|countendswith|''source_str''|''pattern_string''}}</code>
 
OR
 
: <code><nowiki>{{#invoke:</nowiki>String|countendswith|source= ''source_string'' |pattern= ''pattern_string''}}</code>
Returns "yes" if the source string ends with the pattern string. Both strings are trimmed before use.