Skip to content

Commit

Permalink
Update regex recommendation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed May 30, 2014
1 parent 71a8b6c commit 758e066
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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.
Expand Down Expand Up @@ -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 /<length> ,
to avoid performance issues scanning long files.
The type specification can also be optionally followed by
.Dv /[c][s] .
The
.Dq c
Expand Down

0 comments on commit 758e066

Please sign in to comment.