summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsemarie <semarie@cvs.openbsd.org>2015-06-30 08:28:39 +0000
committersemarie <semarie@cvs.openbsd.org>2015-06-30 08:28:39 +0000
commit6cd81de9319b26b5fe6aef7ca6f089f5432afe45 (patch)
tree4b0655fce5821958b246079614298ff0d11eca44
parent501964be21dbc804430f165ed62ac5463539dcfd (diff)
Add a small paragraph about some difference with Lua implementation.
Suggestion from Theo Buehler. OK jmc@ reyk@
-rw-r--r--usr.sbin/httpd/patterns.710
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/httpd/patterns.7 b/usr.sbin/httpd/patterns.7
index 2bdb8da0f8d..8ef55000604 100644
--- a/usr.sbin/httpd/patterns.7
+++ b/usr.sbin/httpd/patterns.7
@@ -1,4 +1,4 @@
-.\" $OpenBSD: patterns.7,v 1.3 2015/06/27 04:22:52 semarie Exp $
+.\" $OpenBSD: patterns.7,v 1.4 2015/06/30 08:28:38 semarie Exp $
.\"
.\" Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
.\" Copyright (C) 1994-2015 Lua.org, PUC-Rio.
@@ -23,9 +23,9 @@
.\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.\"
.\" Derived from section 6.4.1 in manual.html of Lua 5.3.1:
-.\" $Id: patterns.7,v 1.3 2015/06/27 04:22:52 semarie Exp $
+.\" $Id: patterns.7,v 1.4 2015/06/30 08:28:38 semarie Exp $
.\"
-.Dd $Mdocdate: June 27 2015 $
+.Dd $Mdocdate: June 30 2015 $
.Dt PATTERNS 7
.Os
.Sh NAME
@@ -302,3 +302,7 @@ It was turned into a native C API for
.Xr httpd 8
by
.An Reyk Floeter Aq Mt reyk@openbsd.org .
+.Sh CAVEATS
+A notable difference with the Lua implementation is the position in the string
+returned by captures. It follows the C-style indexing (position starting from
+0) instead of Lua-style indexing (position starting from 1).