mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-18 07:33:43 +08:00
refactor(projects): 单独路由逻辑重构、路由转换函数优化
This commit is contained in:
@@ -14,3 +14,7 @@ export const REGEXP_CODE_SIX = /^\d{6}$/;
|
||||
|
||||
/** 4位数字验证码正则 */
|
||||
export const REGEXP_CODE_FOUR = /^\d{4}$/;
|
||||
|
||||
/** url链接正则 */
|
||||
export const REGEXP_URL =
|
||||
/(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
|
||||
|
Reference in New Issue
Block a user