提交 f2173bff 编写于 作者: U UlricQin

log regexp checker

上级 0c35f32c
......@@ -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": "预置分组不能删除资源",
}
......
......@@ -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)
}
// 生成子串匹配错误信息
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册