From df33254afcb03543f924fc30287161f8717ce0de Mon Sep 17 00:00:00 2001 From: neuroevolutus <19356702+neuroevolutus@users.noreply.github.com> Date: Sun, 12 Mar 2023 13:22:24 -0500 Subject: [PATCH] Add link to `string` operator docs in `select` article --- pkg/yqlib/doc/operators/select.md | 2 +- pkg/yqlib/operator_select_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/yqlib/doc/operators/select.md b/pkg/yqlib/doc/operators/select.md index 67b91f85..2de0df52 100644 --- a/pkg/yqlib/doc/operators/select.md +++ b/pkg/yqlib/doc/operators/select.md @@ -62,7 +62,7 @@ going ``` ## Select elements from array with regular expression -See more regular expression examples under the `string` operator docs. +See more regular expression examples under the [`string` operator docs](https://mikefarah.gitbook.io/yq/operators/string-operators). Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/operator_select_test.go b/pkg/yqlib/operator_select_test.go index ef208ad4..02357c2e 100644 --- a/pkg/yqlib/operator_select_test.go +++ b/pkg/yqlib/operator_select_test.go @@ -57,7 +57,7 @@ var selectOperatorScenarios = []expressionScenario{ }, { description: "Select elements from array with regular expression", - subdescription: "See more regular expression examples under the `string` operator docs.", + subdescription: "See more regular expression examples under the [`string` operator docs](https://mikefarah.gitbook.io/yq/operators/string-operators).", document: `[this_0, not_this, nor_0_this, thisTo_4]`, expression: `.[] | select(test("[a-zA-Z]+_[0-9]$"))`, expected: []string{