From 0ef9af4bf950aaf4015669cf903942a8ce62d19b Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 30 May 2014 16:51:23 +0000 Subject: [PATCH] Update regex recommendation. --- doc/magic.man | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/magic.man b/doc/magic.man index fab13efb..955455c9 100644 --- a/doc/magic.man +++ b/doc/magic.man @@ -1,5 +1,5 @@ -.\" $File: magic.man,v 1.81 2014/03/08 17:28:08 christos Exp $ -.Dd April 22, 2013 +.\" $File: magic.man,v 1.82 2014/05/30 16:51:23 christos Exp $ +.Dd May 30, 2014 .Dt MAGIC __FSECTION__ .Os .\" install as magic.4 on USG, magic.5 on V7, Berkeley and Linux systems. @@ -228,7 +228,10 @@ Regular expressions can take exponential time to process, and their performance is hard to predict, so their use is discouraged. When used in production environments, their performance should be carefully checked. -The type specification can be optionally followed by +The size of the string to search should also be limited by specifying +.Dv / , +to avoid performance issues scanning long files. +The type specification can also be optionally followed by .Dv /[c][s] . The .Dq c -- 2.49.0