From 758e066df72fb1ac08d2eea91ddc3973d259e991 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 3bfb7d88..7d7ac7e5 100644 --- a/doc/magic.man +++ b/doc/magic.man @@ -1,5 +1,5 @@ -.\" $File: magic.man,v 1.80 2014/03/07 23:11:16 christos Exp $ -.Dd April 22, 2013 +.\" $File: magic.man,v 1.81 2014/03/08 17:28:08 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