log regexp checker
This commit is contained in:
parent
0c35f32c5c
commit
f2173bff26
|
@ -54,8 +54,8 @@ var (
|
||||||
"Tags filter(Func:%s)'s param invalid": "标签过滤条件(函数:%s)参数不合法(为空或包含空格都不合法)",
|
"Tags filter(Func:%s)'s param invalid": "标签过滤条件(函数:%s)参数不合法(为空或包含空格都不合法)",
|
||||||
"Regexp: %s cannot be compiled": "正则表达式(%s)不合法,无法编译",
|
"Regexp: %s cannot be compiled": "正则表达式(%s)不合法,无法编译",
|
||||||
"AppendTags(%s) invalid": "附件标签(%s)格式不合法",
|
"AppendTags(%s) invalid": "附件标签(%s)格式不合法",
|
||||||
"Regexp[%s] matching failed": "正则表达式[%s]匹配失败",
|
"Regexp %s matching failed": "正则表达式 %s 匹配失败",
|
||||||
"Regexp[%s] matched, but cannot get substring()": "主正则[%s]匹配成功,但无法匹配到子串",
|
"Regexp %s matched, but cannot get substring()": "主正则 %s 匹配成功,但无法匹配到子串",
|
||||||
"TagKey or TagValue contains illegal characters[:,/=\r\n\t]": "标签KEY或者标签值包含非法字符串[:,/=\r\n\t]",
|
"TagKey or TagValue contains illegal characters[:,/=\r\n\t]": "标签KEY或者标签值包含非法字符串[:,/=\r\n\t]",
|
||||||
"Resource cannot delete in preset classpath": "预置分组不能删除资源",
|
"Resource cannot delete in preset classpath": "预置分组不能删除资源",
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,12 +269,12 @@ func includeIllegalChar(s string) bool {
|
||||||
|
|
||||||
// 生成返回错误信息
|
// 生成返回错误信息
|
||||||
func genErrMsg(pattern string) string {
|
func genErrMsg(pattern string) string {
|
||||||
return _s("Regexp[%s] matching failed", pattern)
|
return _s("Regexp %s matching failed", pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成子串匹配错误信息
|
// 生成子串匹配错误信息
|
||||||
func genSubErrMsg(pattern string) string {
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成子串匹配错误信息
|
// 生成子串匹配错误信息
|
||||||
|
|
Loading…
Reference in New Issue