log regexp checker

This commit is contained in:
UlricQin 2021-07-30 10:14:17 +08:00
parent 0c35f32c5c
commit f2173bff26
2 changed files with 4 additions and 4 deletions

View File

@ -54,8 +54,8 @@ var (
"Tags filter(Func:%s)'s param invalid": "标签过滤条件(函数:%s)参数不合法(为空或包含空格都不合法)",
"Regexp: %s cannot be compiled": "正则表达式(%s)不合法,无法编译",
"AppendTags(%s) invalid": "附件标签(%s)格式不合法",
"Regexp[%s] matching failed": "正则表达式[%s]匹配失败",
"Regexp[%s] matched, but cannot get substring()": "主正则[%s]匹配成功,但无法匹配到子串",
"Regexp %s matching failed": "正则表达式 %s 匹配失败",
"Regexp %s matched, but cannot get substring()": "主正则 %s 匹配成功,但无法匹配到子串",
"TagKey or TagValue contains illegal characters[:,/=\r\n\t]": "标签KEY或者标签值包含非法字符串[:,/=\r\n\t]",
"Resource cannot delete in preset classpath": "预置分组不能删除资源",
}

View File

@ -269,12 +269,12 @@ func includeIllegalChar(s string) bool {
// 生成返回错误信息
func genErrMsg(pattern string) string {
return _s("Regexp[%s] matching failed", pattern)
return _s("Regexp %s matching failed", pattern)
}
// 生成子串匹配错误信息
func genSubErrMsg(pattern string) string {
return _s("Regexp[%s] matched, but cannot get substring()", pattern)
return _s("Regexp %s matched, but cannot get substring()", pattern)
}
// 生成子串匹配错误信息