From 7dc84973df643c9f15628e623786ac6c9810a316 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 14 Dec 2018 00:31:54 +0100 Subject: [PATCH] Improve comment --- access.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/access.lua b/access.lua index 62e2647..a5fcc30 100644 --- a/access.lua +++ b/access.lua @@ -188,14 +188,14 @@ end -- If the URL matches one of the `redirected_urls` in the configuration file, -- just redirect to the target URL/URI -- --- A match function to support PCRE and lua pattern --- lua pattern will be deprecated in YunoHost +-- A match function that uses PCRE regex as default +-- If '%.' is found in the regex, we assume it's a LUA regex (legacy code) function match(s, regex) if not string.find(regex, '%%%.') then if rex.match(s, regex) then return true end - elseif string.match(s,regex) then + elseif string.match(s,regex) then return true end return false