Module:Util/strings/endsWith: Difference between revisions
< Module:Util | strings
PhantomCaleb (talk | contribs) (Created page with "local function endsWith() end return endsWith") |
(No difference)
|
Revision as of 20:54, 5 May 2024
endsWith(str, substr)
Returns
true
ifstr
ends withsubstr
, elsefalse
.
Examples
# | Input | Output | Result | Status | ||||
---|---|---|---|---|---|---|---|---|
1 | endsWith("Fooloo Limpah", "Limpah")
|
| ||||||
2 | endsWith("Fooloo Limpah", "limpah")
|
| ||||||
3 | endsWith("Fooloo Limpah", "")
|
| ||||||
4 | endsWith("Wood (Character)", ")", true)
|
|