Skip to content

string.Split and string.SafePattern#35

Open
vugi99 wants to merge 1 commit into
nanos-world:masterfrom
vugi99:stringsplit
Open

string.Split and string.SafePattern#35
vugi99 wants to merge 1 commit into
nanos-world:masterfrom
vugi99:stringsplit

Conversation

@vugi99

@vugi99 vugi99 commented May 24, 2026

Copy link
Copy Markdown
Contributor

It's annoying to copy the same code over and over to split strings. (Plus some of my versions in my packages had bugs or limitations)

-- Makes a safe string to append in a pattern without triggering special lua pattern rules
function string.SafePattern(str)

--[[
Splits strings, using a simple delimiter or a pattern delimiter
]]--
function string.Split(str, delimiter, is_pattern)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant