[enh] Add comment about lua pattern deprecated

This commit is contained in:
ljf 2018-06-24 20:44:28 +02:00
parent 9cbe43862b
commit b90153a5ca

View file

@ -188,6 +188,8 @@ end
-- If the URL matches one of the `redirected_urls` in the configuration file, -- If the URL matches one of the `redirected_urls` in the configuration file,
-- just redirect to the target URL/URI -- just redirect to the target URL/URI
-- --
-- A match function to support PCRE and lua pattern
-- lua pattern will be deprecated in YunoHost
function match(s, regex) function match(s, regex)
if rex.match(s, regex) or string.match(s,regex) then if rex.match(s, regex) or string.match(s,regex) then
return true return true