Skip to content

Commit

Permalink
commit before off duty
Browse files Browse the repository at this point in the history
because I'm going on coding at home:)
  • Loading branch information
XiupengMa committed Jul 22, 2013
1 parent c22da60 commit d1f5e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/VldRulesLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ var VldRulesLib = {
return result;
},

//只能包含某些字符,参数为指定字符的列表,"'\三个字符需要使用斜线转义
//只能包含某些字符,参数为指定字符的列表,按正则表达式的规则进行转义
only: function(value, args, msg1, msg2) {
args = args.replace("\\\[","[");
args = args.replace("\\\]","\]");
Expand All @@ -509,7 +509,7 @@ var VldRulesLib = {
return result;
},

//不能包含某些字符,参数为指定字符的列表,"'\三个字符需要使用斜线转义
//不能包含某些字符,参数为指定字符的列表,按正则表达式的规则进行转义
exclude: function(value, args, msg1, msg2) {
args = args.replace("\\\[","[");
args = args.replace("\\\]","\]");
Expand Down

0 comments on commit d1f5e36

Please sign in to comment.