From 5f6e068f76e0605b0df0d67a3387593e7e64ef68 Mon Sep 17 00:00:00 2001 From: Mark Nuzzo <mnuzzo@gitlab.com> Date: Fri, 30 Aug 2024 04:05:15 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Marcel Amirault <mamirault@gitlab.com> --- doc/ci/yaml/index.md | 1 + doc/ci/yaml/inputs.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ci/yaml/index.md b/doc/ci/yaml/index.md index 855aa90c99242..f65cdcacdd4a7 100644 --- a/doc/ci/yaml/index.md +++ b/doc/ci/yaml/index.md @@ -1022,6 +1022,7 @@ An input of `v1.A.B` does not match the regular expression and fails validation. not `number` or `boolean`. - Do not enclose the regular expression with the `/` character. For example, use `regex.*`, not `/regex.*/`. +- `inputs:regex` uses [RE2](https://github.com/google/re2/wiki/Syntax) to parse regular expressions. ##### `spec:inputs:type` diff --git a/doc/ci/yaml/inputs.md b/doc/ci/yaml/inputs.md index 7ac5736014149..380a60558b8a6 100644 --- a/doc/ci/yaml/inputs.md +++ b/doc/ci/yaml/inputs.md @@ -70,7 +70,7 @@ Additionally, use: understand the input details or expected values. - [`spec:inputs:options`](index.md#specinputsoptions) to specify a list of allowed values for an input. -- [`spec:inputs:regex`](index.md#specinputsoptions) to specify a regular expression +- [`spec:inputs:regex`](index.md#specinputsregex) to specify a regular expression that the input must match. - [`spec:inputs:type`](index.md#specinputstype) to force a specific input type, which can be `string` (default when not specified), `array`, `number`, or `boolean`. -- GitLab