LOG
2026_0110
sends hook 'pattern_part' boolean parameter. Example use:
split({around:quotedSubstring,string: `before "mid" end`})
hook receives [`before `,…,0] |> [`"mid"`…,1] |> [` end`,…,0]
2026_0103
adds 'match' mode, to collect pattern matches only, and example
adds log to readme page
2025_1026
add 'hook' property, to send each part through fn
refactors the 'at' mode to work the same way as others
moves all 'keep' string logic to one function, and slims code
2025_1010
add 'around' mode:
split({around:/\d+/,})(`a12b34c`)// ["a","12","b","34","c"]
adds 'trim' option to trim all strings in list
refactors
renames to 'split_string()' for grep (avoids `.split` mismatch)
2025_1009
packs various split methods into basic function
reduces code repetition
makes function curry-able/chainable/pipe-able
simplifies use:
split({at/before/after:delimiter_regex_or_str})(str)
(VS. split({delimiter:re_or_str,mode:before|after|at})(str))