Skip to content

Commit 6d0ecd6

Browse files
yandongxiaoagentzh
authored andcommitted
doc: typo fix: fix "\d+" to [[\d+]].
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent cf5fb98 commit 6d0ecd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ As noted earlier, PCRE sequences presented within `*_by_lua_block {}` directives
840840
# nginx.conf
841841
location /test {
842842
content_by_lua_block {
843-
local regex = "\d+"
843+
local regex = [[\d+]]
844844
local m = ngx.re.match("hello, 1234", regex)
845845
if m then ngx.say(m[0]) else ngx.say("not matched!") end
846846
}

doc/HttpLuaModule.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ As noted earlier, PCRE sequences presented within <code>*_by_lua_block {}</code>
684684
# nginx.conf
685685
location /test {
686686
content_by_lua_block {
687-
local regex = "\d+"
687+
local regex = [[\d+]]
688688
local m = ngx.re.match("hello, 1234", regex)
689689
if m then ngx.say(m[0]) else ngx.say("not matched!") end
690690
}

0 commit comments

Comments
 (0)