bugfix, inBrackets actually works

This commit is contained in:
2025-09-11 20:37:45 +10:00
parent f54d41f5b6
commit e028cae397
2 changed files with 26 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ Finds $len characters of $str, starting at $idx (no prerequisites).
### fun -string !inBrackets -string &str -char &left -char &right -int &instance
Finds the content of the `$instance`th instance of brackets, with the left bracket being the $left char and the right bracket of $right char (requires !findCharInstance).
Finds the content of the `$instance`th instance of brackets, with the left bracket being the $left char and the right bracket of $right char (requires !findCharInstance and !mid).
### fun -bool !matchStart -string &str -string &instr
@@ -40,4 +40,8 @@ You'll never guess what this does (it removes the last $num characters from a st
### fun -bool !contains -string &str -string &instr
Checks if $str contains $instr (requires !mid).
Checks if $str contains $instr (requires !mid).
### fun -list !split -string &str -string &splitstr
Returns a list of $str split apart depending on $splitstr, e.g. `split("a->b->c", "->")` returns `[a, b, c]` (requires !contains, !findStringInstance, !mid, !removeLeft).