Mercurial > hg > nginx-site
changeset 2268:cd1b26111884
Moved string.split to follow alphabetical order.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 29 Oct 2018 21:36:11 +0300 |
parents | c30048802769 |
children | 6426814f9373 |
files | xml/en/docs/njs/reference.xml |
diffstat | 1 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@ <article name="Reference" link="/en/docs/njs/reference.html" lang="en" - rev="13"> + rev="14"> <section id="summary"> @@ -710,6 +710,22 @@ from <literal>start</literal> to the end </example> </tag-desc> +<tag-name id="string_split"><literal>String.prototype.split(([<value>string</value>|<value>regexp</value>[, +<value>limit</value>]]))</literal></tag-name> +<tag-desc> +Returns match of a string against a <literal>regexp</literal>. +The optional <literal>limit</literal> parameter is an integer that specifies +a limit on the number of splits to be found. +<example> +>> 'abc'.split('') +[ + 'a', + 'b', + 'c' +] +</example> +</tag-desc> + <tag-name id="string_startswith"><literal>String.prototype.startsWith(<value>searchString</value>[, <value>position</value>])</literal></tag-name> <tag-desc> @@ -820,22 +836,6 @@ Removes whitespaces from both ends of a </example> </tag-desc> -<tag-name id="string_split"><literal>String.prototype.split(([<value>string</value>|<value>regexp</value>[, -<value>limit</value>]]))</literal></tag-name> -<tag-desc> -Returns match of a string against a <literal>regexp</literal>. -The optional <literal>limit</literal> parameter is an integer that specifies -a limit on the number of splits to be found. -<example> ->> 'abc'.split('') -[ - 'a', - 'b', - 'c' -] -</example> -</tag-desc> - <tag-name id="encodeuri"><literal>encodeURI(<value>URI</value>)</literal></tag-name> <tag-desc> encodes a URI by replacing each instance of certain characters by