From cf50becd21307af18b39e179740e0db152531dc7 Mon Sep 17 00:00:00 2001 From: Konstantin Ilyinov Date: Mon, 9 Dec 2024 12:00:22 +1100 Subject: [PATCH 1/3] Update examples.mdx Updated regex example to use another repo as sourcegraph/sourcegraph is no longer available in .com instance --- docs/code-search/queries/examples.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/code-search/queries/examples.mdx b/docs/code-search/queries/examples.mdx index d98b04576..d8710d53b 100644 --- a/docs/code-search/queries/examples.mdx +++ b/docs/code-search/queries/examples.mdx @@ -107,8 +107,8 @@ repo:^github\.com/Parsely/pykafka$ Not leader for partition Regex searches are also useful when searching boundaries that are not delimited by code structures: -[Finding css classes with word boundary regex](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+%5Cbbtn-secondary%5Cb&patternType=regexp) +[Finding css classes with word boundary regex](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/.%2A%24+%5Cbbtn-secondary%5Cb&patternType=regexp) ```sgquery -repo:^github\.com/sourcegraph/sourcegraph$ \bbtn-secondary\b +repo:^github\.com/.*$ \bbtn-secondary\b ``` From 307ac550bc196640d572c828a7234eba48f28233 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 9 Dec 2024 10:55:30 -0800 Subject: [PATCH 2/3] Update docs/code-search/queries/examples.mdx Co-authored-by: Keegan Carruthers-Smith --- docs/code-search/queries/examples.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/code-search/queries/examples.mdx b/docs/code-search/queries/examples.mdx index d8710d53b..b9e6f2149 100644 --- a/docs/code-search/queries/examples.mdx +++ b/docs/code-search/queries/examples.mdx @@ -107,7 +107,7 @@ repo:^github\.com/Parsely/pykafka$ Not leader for partition Regex searches are also useful when searching boundaries that are not delimited by code structures: -[Finding css classes with word boundary regex](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/.%2A%24+%5Cbbtn-secondary%5Cb&patternType=regexp) +[Finding css classes with word boundary regex](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/+%5Cbbtn-secondary%5Cb&patternType=regexp) ```sgquery repo:^github\.com/.*$ \bbtn-secondary\b From f2e139394258af7f1b7c5bc2a40265b23aa27cbf Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 9 Dec 2024 10:55:37 -0800 Subject: [PATCH 3/3] Update docs/code-search/queries/examples.mdx Co-authored-by: Keegan Carruthers-Smith --- docs/code-search/queries/examples.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/code-search/queries/examples.mdx b/docs/code-search/queries/examples.mdx index b9e6f2149..edbade39f 100644 --- a/docs/code-search/queries/examples.mdx +++ b/docs/code-search/queries/examples.mdx @@ -110,5 +110,5 @@ Regex searches are also useful when searching boundaries that are not delimited [Finding css classes with word boundary regex](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/+%5Cbbtn-secondary%5Cb&patternType=regexp) ```sgquery -repo:^github\.com/.*$ \bbtn-secondary\b +repo:^github\.com/sourcegraph/ \bbtn-secondary\b ```