Permission regex is a PCRE regex

This commit is contained in:
Josué Tille 2020-04-29 20:32:07 +02:00
parent 8deb083830
commit e8ca600bdc
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -201,7 +201,7 @@ ynh_webpath_register () {
# /admin -> domain.tld/app/admin # /admin -> domain.tld/app/admin
# domain.tld/app/api -> domain.tld/app/api # domain.tld/app/api -> domain.tld/app/api
# #
# 'url' or 'additional_urls' can be treated as a regex if it starts with "re:". # 'url' or 'additional_urls' can be treated as a PCRE (lua) regex if it starts with "re:".
# For example: # For example:
# re:/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$ # re:/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$
# re:domain.tld/app/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$ # re:domain.tld/app/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$