Skip to content

Commit 0cc4aad

Browse files
committed
ngx.re opt string is not required
1 parent 67b4c57 commit 0cc4aad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

meta/3rd/OpenResty/library/ngx.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ ngx.re = {}
10121012
---
10131013
---@param subject string
10141014
---@param regex string
1015-
---@param options ngx.re.options
1015+
---@param options? ngx.re.options
10161016
---@param ctx? ngx.re.ctx
10171017
---@param nth? integer
10181018
---@return integer? from
@@ -1087,7 +1087,7 @@ function ngx.re.find(subject, regex, options, ctx, nth) end
10871087
---
10881088
---@param subject string
10891089
---@param regex string
1090-
---@param options ngx.re.options
1090+
---@param options? ngx.re.options
10911091
---@return ngx.re.gmatch.iterator? iterator
10921092
---@return string? error
10931093
function ngx.re.gmatch(subject, regex, options) end
@@ -1121,7 +1121,7 @@ function ngx.re.gmatch(subject, regex, options) end
11211121
---
11221122
---@param subject string
11231123
---@param regex string
1124-
---@param options ngx.re.options
1124+
---@param options? ngx.re.options
11251125
---@param ctx? ngx.re.ctx
11261126
---@param res? ngx.re.captures
11271127
---@return ngx.re.captures? captures
@@ -1155,7 +1155,7 @@ function ngx.re.match(subject, regex, options, ctx, res) end
11551155
---@param subject string
11561156
---@param regex string
11571157
---@param replace ngx.re.replace
1158-
---@param options ngx.re.options
1158+
---@param options? ngx.re.options
11591159
---@return string? new
11601160
---@return integer? n
11611161
---@return string? error
@@ -1219,7 +1219,7 @@ function ngx.re.gsub(subject, regex, replace, options) end
12191219
---@param subject string
12201220
---@param regex string
12211221
---@param replace ngx.re.replace
1222-
---@param options ngx.re.options
1222+
---@param options? ngx.re.options
12231223
---@return string? new
12241224
---@return integer? n
12251225
---@return string? error

0 commit comments

Comments
 (0)