Files
teleport/lib/utils
Nic KlaassenandPaul Gottschling 476ebc1f54 feat: Login Rule support for email.local and regexp.replace (#29596)
* feat: Login Rule support for email.local and regexp.replace

This commit updates the `stringListMap` function to filter out values
that map to the empty string.
This is used by `email.local` and `regexp.replace` only.
The empty values were already being filtered out in
`(*TraitsTemplateExpression).Interpolate`, adding the filtering here
just makes it more convenient to call these functions in the Login Rule
parser in teleport.e where it's desirable to have the same behaviour of
`regexp.replace` filtering out values that don't match the expression.

The actual implementation and tests for the new helpers in Login Rules
is added in a buddy PR in teleport.e.

This PR also adds documentation for the new functions.

* apply docs grammar suggestions

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-07-25 21:56:44 +00:00
..
2022-07-14 10:51:23 +00:00
2022-11-23 10:14:45 -08:00
2022-10-28 20:20:28 +00:00
…
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
…
2022-10-28 20:20:28 +00:00
…
2022-10-28 20:20:28 +00:00
2022-09-27 15:01:32 -07:00
2022-10-28 20:20:28 +00:00
2022-12-30 12:09:11 -08:00
…
2023-03-31 21:55:13 +00:00
2021-12-09 19:50:44 +00:00
…
2022-10-28 20:20:28 +00:00
…
…
…
2022-10-28 20:20:28 +00:00
2022-07-14 19:22:54 -07:00