Skip to content

Commit

Permalink
docs: clarify split behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Aug 7, 2022
1 parent cff5336 commit 9d93bbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,9 @@ sections:
Splits an input string on the separator argument.
`split` can also split on regex matches when called with
two arguments (see the regular expressions section below).
examples:
- program: 'split(", ")'
input: '"a, b,c,d, e, "'
Expand Down Expand Up @@ -2425,7 +2428,10 @@ sections:
- title: "`split(regex; flags)`"
body: |
For backwards compatibility, `split` splits on a string, not a regex.
Splits an input string on each regex match.
For backwards compatibility, when called with a single argument,
`split` splits on a string, not a regex.
example:
- program: 'split(", *"; null)'
Expand Down

0 comments on commit 9d93bbd

Please sign in to comment.