mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 19:01:41 +08:00
fix(system/storage): 对象存储配置增加 Endpoint 参数格式校验
This commit is contained in:
@@ -60,9 +60,14 @@ public class RegexConstants {
|
||||
public static final String PACKAGE_NAME = "^(?:[a-zA-Z_][a-zA-Z0-9_]*\\.)*[a-zA-Z_][a-zA-Z0-9_]*$";
|
||||
|
||||
/**
|
||||
* HTTP 域名 URL 正则(非 IP 地址)
|
||||
* HTTP URL 正则
|
||||
*/
|
||||
public static final String HTTP_DOMAIN_URL = "^(https?:\\/\\/)([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}(\\/[^\\s]*)?$";
|
||||
public static final String URL_HTTP = "^(https?)://[\\w-+&@#/%?=~_|!:,.;]*[\\w-+&@#/%=~_|]$";
|
||||
|
||||
/**
|
||||
* HTTP URL 正则(非 IP 地址)
|
||||
*/
|
||||
public static final String URL_HTTP_NOT_IP = "^(https?:\\/\\/)([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}(\\/[^\\s]*)?$";
|
||||
|
||||
/**
|
||||
* HTTP HOST 正则
|
||||
|
Reference in New Issue
Block a user