Skip to content

Commit 00d909a

Browse files
Update rulesets-commit-regex.md (#55360)
Co-authored-by: Copilot <[email protected]>
1 parent a9e8a2f commit 00d909a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/reusables/repositories/rulesets-commit-regex.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Rulesets support RE2 syntax. For more information, see Google's [syntax guide](h
66

77
By default, regular expressions in metadata restrictions do not consider multiple lines of text. For example, if you have a multiline commit message, the pattern `^ABC` will be a match if the first line of the message starts with `ABC`. To match multiple lines of the message, start your expression with `(?m)`.
88

9+
When using regular expression metacharacter classes that contain a backslash `\` it must be escaped with an additional backslash. For example `task#\\d{1,4}`
10+
911
The negative lookahead assertion, denoted `?!`, is not supported. However, for cases where you need to look for a given string that is not followed by another given string, you can use the positive lookahead assertion, denoted `?`, combined with the "Must not match a given regex pattern" requirement.
1012

1113
> [!NOTE]

0 commit comments

Comments
 (0)