From edef447ffd78ec4667b82fcfb84ebf5745fb37ca Mon Sep 17 00:00:00 2001 From: Wenl4ng <15861868579@163.com> Date: Tue, 12 Nov 2024 16:24:48 +0800 Subject: [PATCH] fix --- config.yml.example | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/config.yml.example b/config.yml.example index 660f63c..80c0f4d 100644 --- a/config.yml.example +++ b/config.yml.example @@ -1,13 +1,16 @@ -LFS_BUCKET: *********** -CDN_DOMAIN: *********** -OBS_REGION: *********** -OBS_ACCESS_KEY_ID: *********** -OBS_SECRET_ACCESS_KEY: *********** -CLIENT_ID: *********** -CLIENT_SECRET: *********** -PATH_PREFIX: *********** -VALIDATE_REGEXP: - OWNER_REGEXP: ^[a-zA-Z]([-_.]([a-zA-Z0-9])|[a-zA-Z0-9])+$ - REPONAME_REGEXP: ^(?=[a-zA-Z0-9.])[a-zA-Z0-9_.-]{1,189}[a-zA-Z0-9.]$ - USERNAME_REGEXP: ^[a-zA-Z]([-_.]([a-zA-Z0-9])|[a-zA-Z0-9])+$ - PASSWORD_REGEXP: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@_#$%^&*()\-+=,.?]).{8,}$|^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$|^(?=.*[a-z])(?=.*[!@_#$%^&*()\-+=,.?]).{8,}$|^(?=.*[A-Z])(?=.*[!@_#$%^&*()\-+=,.?]).{8,}$|^(?=.*\d)(?=.*[!@_#$%^&*()\-+=,.?]).{8,}$ \ No newline at end of file +{ + "LFS_BUCKET": *********** + "CDN_DOMAIN": *********** + "OBS_REGION": *********** + "OBS_ACCESS_KEY_ID": *********** + "OBS_SECRET_ACCESS_KEY": *********** + "CLIENT_ID": *********** + "CLIENT_SECRET": *********** + "PATH_PREFIX": *********** + "VALIDATE_REGEXP": { + "OWNER_REGEXP": "^[a-zA-Z]([-_.]?[a-zA-Z0-9]+)*$", + "REPONAME_REGEXP": "^[a-zA-Z0-9_.-]{1,189}[a-zA-Z0-9]$", + "USERNAME_REGEXP": "^[a-zA-Z]([-_.]?[a-zA-Z0-9]+)*$", + "PASSWORD_REGEXP": "^[a-zA-Z0-9!@_#$%^&*()\\-=+,?.,]*$" + } +}