From 8dafcf97d05ff911a29059443352dbe9baa9bda6 Mon Sep 17 00:00:00 2001 From: Sophie <29382425+sophietheking@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:23:11 +0100 Subject: [PATCH] Follow-up to: managing-a-branch-protection-rule.md rules need clarification (#48766) Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> --- .../repositories/rulesets-unsupported-fnmatch-syntax.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/reusables/repositories/rulesets-unsupported-fnmatch-syntax.md b/data/reusables/repositories/rulesets-unsupported-fnmatch-syntax.md index 5279571eca..598f7cfed8 100644 --- a/data/reusables/repositories/rulesets-unsupported-fnmatch-syntax.md +++ b/data/reusables/repositories/rulesets-unsupported-fnmatch-syntax.md @@ -1,5 +1,9 @@ {% note %} -**Note:** Although {% data variables.product.prodname_dotcom %} supports `File::FNM_PATHNAME` in `fnmatch` syntax, `File::FNM_EXTGLOB` is not supported. +**Note:** Not all expressions from the `fnmatch` syntax are supported in branch protection rules. Please be aware of the following constraints: + +- You cannot use the backslash (`\`) character as a quoting character, as {% data variables.product.prodname_dotcom %} does not support the use of backslashes in branch protection rules. +- You can specify character sets within square brackets (`[]`), but you cannot currently complement a set with the `^` operator (e.g., `[^charset]`). +- Although {% data variables.product.prodname_dotcom %} supports `File::FNM_PATHNAME` in `fnmatch` syntax, `File::FNM_EXTGLOB` is not supported. {% endnote %}