Skip to content
Myr

docs: clarify split behavior (#2462)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Lucas Trzesniewski · committed by GitHub · parent 90bfa96 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:docs/content/manual/manual.yml+7 added-1 removed
1610 unmodified lines
1611 body: |16121613 Splits an input string on the separator argument.16141615 `split` can also split on regex matches when called with1616 two arguments (see the regular expressions section below).16171618 examples:1619 - program: 'split(", ")'1620 input: '"a, b,c,d, e, "'1621 output: ['["a","b,c,d","e",""]']
805 unmodified lines
24272428 - title: "`split(regex; flags)`"2429 body: |24302428 For backwards compatibility, `split` splits on a string, not a regex.2431 Splits an input string on each regex match.24322433 For backwards compatibility, when called with a single argument,2434 `split` splits on a string, not a regex.24352436 example:2437 - program: 'split(", *"; null)'2438 input: '"ab,cd, ef"'2439 output: ['"ab","cd","ef"']
955 unmodified lines