From f5f6538984b5bc9bccfc544960e05d47304f3c5e Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 3 Jun 2022 19:04:52 +0200 Subject: feat: add apex_ls (#746) Closes #701. --- tests/core/functional/string_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/core/functional/string_spec.lua') diff --git a/tests/core/functional/string_spec.lua b/tests/core/functional/string_spec.lua index e24819d9..cbee0617 100644 --- a/tests/core/functional/string_spec.lua +++ b/tests/core/functional/string_spec.lua @@ -19,4 +19,8 @@ describe("functional: string", function() assert.same({ "This", "is", "a", "sentence" }, _.split("%s", "This is a sentence")) assert.same({ "This", "is", "a", "sentence" }, _.split("|", "This|is|a|sentence")) end) + + it("should gsub strings", function() + assert.same("predator", _.gsub("^apex%s*", "", "apex predator")) + end) end) -- cgit v1.2.3-70-g09d2