@@ -223,11 +223,11 @@ Body must match a given regex.
223223 ```ini
224224 # Ensure the body ends with Reviewed-By: <some value>
225225 [body-match-regex]
226- regex=Reviewed-By:(.*)$
226+ regex=Reviewed-By: .+
227227
228228 # Ensure body contains the word "Foo" somewhere
229229 [body-match-regex]
230- regex=(*.)Foo(.*)
230+ regex=.*\bFoo\b.*
231231 ```
232232
233233## M1: author-valid-email
@@ -252,7 +252,7 @@ Author email address must be a valid email address.
252252 ```ini
253253 # Only allow email addresses from a foo.com domain
254254 [author-valid-email]
255- 255+ regex=[^@]+@foo\ .com$
256256 ```
257257
258258## I1: ignore-by-title
@@ -273,12 +273,12 @@ Ignore a commit based on matching its title.
273273 # Match commit titles starting with Release
274274 # For those commits, ignore title-max-length and body-min-length rules
275275 [ignore-by-title]
276- regex=^Release(.*)
276+ regex=^Release.*
277277 ignore=title-max-length,body-min-length,B6 # (1)
278278
279279 # Ignore all rules by setting ignore to 'all'
280280 [ignore-by-title]
281- regex=^Release(.*)
281+ regex=^Release.*
282282 ignore=all
283283 ```
284284
@@ -303,12 +303,12 @@ Ignore a commit based on matching its body.
303303 # Ignore all commits with a commit message body with a line that contains 'release'
304304 # For matching commits, only ignore rules T1, body-min-length, B6.
305305 [ignore-by-body]
306- regex=(.*) release(.*)
306+ regex=.* release.*
307307 ignore=T1,body-min-length,B6 # (1)
308308
309309 # Ignore all rules by setting ignore to 'all'
310310 [ignore-by-body]
311- regex=(.*) release(.*)
311+ regex=.* release.*
312312 ignore=all
313313 ```
314314
@@ -331,15 +331,15 @@ Ignore certain lines in a commit body that match a regex.
331331 ```ini
332332 # Ignore all lines that start with 'Co-Authored-By'
333333 [ignore-body-lines]
334- regex=^Co-Authored-By
334+ regex=^Co-Authored-By.*
335335
336336 # Ignore lines that start with 'Co-Authored-By' or with 'Signed-off-by'
337337 [ignore-body-lines]
338- regex=(^ Co-Authored-By)|(^ Signed-off-by)
338+ regex=^( Co-Authored-By| Signed-off-by).*
339339
340340 # Ignore lines that contain 'foobar'
341341 [ignore-body-lines]
342- regex=(.*) foobar(.*)
342+ regex=.* foobar.*
343343 ```
344344
345345## I4: ignore-by-author-name
@@ -365,7 +365,7 @@ Ignore a commit based on matching its author name.
365365
366366 # For commits made by authors with "[bot]" in their name, ignore specific rules
367367 [ignore-by-author-name]
368- regex=(.*) \[bot\](.*)
368+ regex=.* \[bot\].*
369369 ignore=T1,body-min-length,B6 # (1)
370370 ```
371371
0 commit comments