Merge pull request #221 from orhtej2/pcre2

Fix helper for bookworm.
This commit is contained in:
Alexandre Aubin 2023-09-08 19:59:28 +02:00 committed by GitHub
commit 809a2a93b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -889,7 +889,7 @@ function edit_user()
end end
ldap:close() ldap:close()
local rex = require "rex_pcre" local rex = require "rex_pcre2"
local rex_flags = rex.flags() local rex_flags = rex.flags()
local mail_re = rex.new([[^[\w\.\-+%]+@([^\W_A-Z]+([\-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$]], rex_flags.UTF8 + rex_flags.UCP) local mail_re = rex.new([[^[\w\.\-+%]+@([^\W_A-Z]+([\-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$]], rex_flags.UTF8 + rex_flags.UCP)