From d1f5e366e32b0aa754cb8ae34fa2556c0df31f84 Mon Sep 17 00:00:00 2001 From: RocShow Date: Mon, 22 Jul 2013 18:44:41 +0800 Subject: [PATCH] commit before off duty because I'm going on coding at home:) --- libs/VldRulesLib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/VldRulesLib.js b/libs/VldRulesLib.js index 478073a..44977e8 100644 --- a/libs/VldRulesLib.js +++ b/libs/VldRulesLib.js @@ -488,7 +488,7 @@ var VldRulesLib = { return result; }, - //只能包含某些字符,参数为指定字符的列表,"'\三个字符需要使用斜线转义 + //只能包含某些字符,参数为指定字符的列表,按正则表达式的规则进行转义 only: function(value, args, msg1, msg2) { args = args.replace("\\\[","["); args = args.replace("\\\]","\]"); @@ -509,7 +509,7 @@ var VldRulesLib = { return result; }, - //不能包含某些字符,参数为指定字符的列表,"'\三个字符需要使用斜线转义 + //不能包含某些字符,参数为指定字符的列表,按正则表达式的规则进行转义 exclude: function(value, args, msg1, msg2) { args = args.replace("\\\[","["); args = args.replace("\\\]","\]");