Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: document std.match in standard library #1100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/_stdlib_gen/stdlib-content.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@ local html = import 'html.libsonnet';
Returns a copy of string after eliminating leading and trailing whitespaces.
|||,
},
{
name: 'match',
params: ['str', 'pat'],
availableSince: 'upcoming',
description: |||
Matches the given <code>str</code> using <code>pat</code> as regexp pattern and returns an array of the matches.
|||,
},
{
name: 'equalsIgnoreCase',
params: ['str1', 'str2'],
Expand Down
2 changes: 2 additions & 0 deletions stdlib/std.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1785,4 +1785,6 @@ limitations under the License.
sha3(str):: go_only_function,

trim(str):: std.stripChars(str, ' \t\n\f\r\u0085\u00A0'),

match(str, pat):: go_only_function,
}