Skip to content

Commit 758e066

Browse files
committed
Update regex recommendation.
1 parent 71a8b6c commit 758e066

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: doc/magic.man

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.\" $File: magic.man,v 1.80 2014/03/07 23:11:16 christos Exp $
2-
.Dd April 22, 2013
1+
.\" $File: magic.man,v 1.81 2014/03/08 17:28:08 christos Exp $
2+
.Dd May 30, 2014
33
.Dt MAGIC __FSECTION__
44
.Os
55
.\" 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
228228
performance is hard to predict, so their use is discouraged.
229229
When used in production environments, their performance
230230
should be carefully checked.
231-
The type specification can be optionally followed by
231+
The size of the string to search should also be limited by specifying
232+
.Dv /<length> ,
233+
to avoid performance issues scanning long files.
234+
The type specification can also be optionally followed by
232235
.Dv /[c][s] .
233236
The
234237
.Dq c

0 commit comments

Comments
 (0)