设备列表、工单列表
This commit is contained in:
@ -11,7 +11,7 @@ export function isPathMatch(pattern, path) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断value字符串是否为空
|
||||
* 判断value字符串是否为空
|
||||
* @param {string} value
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
@ -23,7 +23,7 @@ export function isEmpty(value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断url是否是http或https
|
||||
* 判断url是否是http或https
|
||||
* @param {string} url
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
@ -112,3 +112,13 @@ export function isArray(arg) {
|
||||
}
|
||||
return Array.isArray(arg)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string}
|
||||
* @returns {Boolean}
|
||||
* 只能输入中文、英文、数字、特殊字符!@#$%^&*-,./
|
||||
*/
|
||||
export function validText(text) {
|
||||
const reg = /^[a-zA-Z0-9\u4e00-\u9fa5!@#$%^&*-,.]+$/
|
||||
return reg.test(text)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user