Module:Util/strings/endsWith: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Created page with "local function endsWith() end return endsWith")
(No difference)

Revision as of 20:54, 5 May 2024

endsWith(str, substr)

Returns

  • true if str ends with substr, else false.

Examples

#InputOutputResultStatus
1
endsWith("Fooloo Limpah", "Limpah")
Expected
true
Actual
nil
2
endsWith("Fooloo Limpah", "limpah")
Expected
false
Actual
nil
3
endsWith("Fooloo Limpah", "")
Expected
true
Actual
nil
4
endsWith("Wood (Character)", ")", true)
Expected
true
Actual
nil

local function endsWith()
end

return endsWith