From 36f4c9881db0148e5fa51e0c91ccbe050365433a Mon Sep 17 00:00:00 2001 From: bbalganjjm Date: Fri, 24 Apr 2015 18:02:14 +0900 Subject: [PATCH] - Bug fix N.validator.validate method * Does not pass the verification when input empty value <- fixed --- natural.data.min.js | 4 ++-- src/natural.data.js | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/natural.data.min.js b/natural.data.min.js index 96fc9f7e6..e63736367 100644 --- a/natural.data.min.js +++ b/natural.data.min.js @@ -1,5 +1,5 @@ /*! - * Natural-DATA v0.8.1.7 + * Natural-DATA v0.8.1.8 * bbalganjjm@gmail.com * * Copyright 2014 KIM HWANG MAN @@ -7,4 +7,4 @@ * * Date: 2014-09-26T11:11Z */ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(u,$){B v="0.8.1.7";$.1j.1s(N,{"2x-4h":v});$.1s(N.1j,{2T:N,3M:A(a){y N.O.1A(E,a)},3I:A(a){y N.O.1X(E,a)},3V:A(a,b){y N.O.1N(E,a,b)},1k:A(a){y F N.1k(E,a)},1x:A(a){y F N.1x(E,a)}});$.1j.1s(N.1j);N.O={1X:A(a,b){x(N.2H(a)){x(a.G==1){x(N.2A(a.1K(0))){y N(E.1X(a.1K(0),b))}I{y a}}I{y N(E.1X(a.23(),b))}}I{x(b!=C){y a[b]||[]}I{1o(B c 29 a){y N.4i(c)?a:a[c]}}}},1A:A(a,b){x(b===1b){y a}y N.2H(a)?N(E.1A(a.23(),b)):$.5t(a,b)},2w:A(c,d){x(d===1b){d=1}I{x(d){d=-1}I{d=1}}y A(a,b){a=N.D.19(1p(a[c])).P(/-|\\./g,"");b=N.D.19(1p(b[c])).P(/-|\\./g,"");x(2e(a)&&2e(b)){a=2e(a);b=2e(b)}x(ab){y d*1}y 0}},1N:A(a,b,c){y N.2H(a)?N(a.1N(E.2w(b,c))):a.1N(E.2w(b,c))}};(A(N){B r=N.1z=A(a,b){x(N.1z.41!=N.1z.1S){1d F 1c("[N.4Z]56 1v 5u 3H 2T 1o N.1z, 3F 1S 3L");}E.1E=$(a.1l.S).3C(".3A");x(E.1E.G===0){E.1E=$(a.1l.S).3C("4j.4l").4m(".3A")}x(E.1E.G===0){B c=$(N.S.1f("4N").4S.S);B d=c.1G("B#2o");x(d.G===0){d=c.5m(\'\').1G("B#2o")}E.1E=d}B e=E.1E.1S("1z");x(e!==1b){e.2c=a;x(b!==1b&&b===17){e.1R.1D(a)}}I{e=E;e.2c=a;e.1R=[];e.1R.1D(a);E.1E.1S("1z",e)}y e};r.1j=r.2h;$.1s(r.1j,{"3Z":A(){B a=E.2c;B b=E.1R;1o(B i=0;i0){x(a[0][c.S.1f("1F")]!==1b){c.1i.1D(c.S.1K(0))}I{1o(B k 29 a[0]){x(c.S.1G("#"+k).G>0){c.1i.1D(c.S.1G("#"+k).1K(0))}}}c.1t=N.1C.3x(c.1i,"18")}}};s.1j=s.2h;$.1s(s.1j,{"18":A(c){B d=E.1l;B f=E;B g=[];B h;B j;B l;x(c!==1b){x(c=0){d.O=[d.O[c]]}I{N.1g("[1m.1j.18]3w 3v 3p 3o 3n")}}I{x(d.1q){c=0;d.O=[d.O[c]]}}$(d.O).26(A(i,b){h={};1o(B k 29 d.1t){j=1p(b[k]);$(d.1t[k]).26(A(){x(d.1q){l=d.1i.1A("#"+k);x(l.G===0){l=1b}}2y{j=s[N.D.19(E[0]).2C()](j,N(E).3m(0).23(),l)}2g(e){x(e.1V().2i("1v 3k a A")>-1){N.1g("[1m.1j.18]\\""+E[0]+"\\" 1v 3j 18 1Q",e)}I{N.1g(e,e)}}});h[k]=j;x(d.1q){l=d.1i.1A("#"+k);x(l.1v("J:3i, 5r")){l.1I(j);x(d.2b){l.22("18.1k 20.1k");l.2t("18.1k",A(){l=d.S.1A("#"+$(E).1f("1F"));x(l.G===0){l=d.S.1G("#"+$(E).1f("1F"))}B a=f.18();x(a.G===1){c=0}$(E).1I(a[c][$(E).1f("1F")])}).2t("20.1k",A(){x(d.O.G===1){c=0}$(E).1I(f.20(c,$(E).1f("1F")))})}}I{x(!l.1v(":J")){l.3i(j)}}}j=C}g.1D(h);h=C});y g},"20":A(a,b){y E.1l.O[a][b]}});$.1s(s,{"3K":A(a,b){x(N.1B(a)){y a}a=a.P(/,/g,"");B c=/(^[+-]?\\d+)(\\d{3})/;a+=\'\';3N(c.R(a)){a=a.P(c,\'$1\'+\',\'+\'$2\')}y a},"2B":A(a,b){x(N.1B(a)){y a}a=a.P(/-/g,"");x(a.G==13){B c="*";x(b!=C&&b[1]!=C){c=b[1]}x(b!=C&&b[0]!=C){a=N.D.1H(a.H(0,13-U(b[0])),13,c);a=a.H(0,6)+"-"+a.H(6,13)}I{a=a.H(0,6)+"-"+a.H(6,13)}}y a},"3h":A(a,b){x(N.D.19(a).G<5){y a}a=a.P(/-/g,"");a=a.P(/\\s/g,"");x(a.G>10){a=a.H(0,10)}y a.H(0,3)+"-"+a.H(3,5)+"-"+a.H(5,10)},"4n":A(a,b){x(N.1B(a)){y a}y a.3g()},"4D":A(a,b){x(N.1B(a)){y a}y a.2C()},"4K":A(a,b){x(N.1B(a)){y a}B c=a.H(0,1).3g();x(a.G>1){c=c+a.H(1)}y c},"3e":A(a,b){x(N.1B(a)){y a}a=a.P(/-/g,"");y a.H(0,3)+"-"+a.H(3,6)},"4Q":A(a,b){x(N.1B(a)){y a}a=a.P(/-/g,"");y a.P(/(^4R.{0}|^3c.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3")},"5k":A(a,b){2y{a=1p(5l(a))}2g(e){y a}y a=="3b"?a.P("3b",""):a},"5n":A(a,b){y N.D.19(a)},"5p":A(a,b){y N.D.1h(a)},"5s":A(a,b){x(b==C||b[0]==C){N.1g("[1m.3a]L K J M[0](3J 1P)")}y N.D.3a(a,b[0])},"1e":A(g,h,i){x(h===1b){y g}g=g.P(/[^0-9]/g,"");x(N.34!==1b){x(h[1]!==1b&&(h[1]==="1e"||h[1]==="2E")&&i!==1b&&!i.3O("3P")){B j=h[1]==="2E"?17:16;i.34({3Q:j,5y:A(a,b){a.22("1J.2G.18.1e",N.1C.2F);a.42("1J.2G.18.1e",N.1C.2F)},4d:A(a,b,c){B d=N.S.1f("O").1k.1e;B e=16;x(a.2I("2f")){a.2I("2f",16);e=17}B f=b.1W.24(b.18);x(b.1W.24("Y").G<=3){f=f.P(b.1W.24("Y"),N.D.1U(b.1W.24("Y"),4,"0"))}x(!c&&f.G===7){f="0"+f}I x(c&&f.G===5){f="0"+f}a.1I(f);x(e){a.2I("2f",17)}y 16},4k:A(a,b){a.22("1J.2G.18.1e",N.1C.2F).2k("1J.2l.1r").2k("1J.2l.4o").2k("1J.2l.18")}})}}I{N.4q("x 3F 1e & 2E 1l, 4r 2x-33 32")}x(h[0]!==1b){B k=N.S.1f("O").1k.1e;B l;x(h[0]===4){l=N.1e.18(g,"Y")}I x(h[0]===6){l=N.1e.18(g,k.4E())}I x(h[0]===8){l=N.1e.18(g,k.2Y())}I x(h[0]===10){l=N.1e.18(g,k.4L())}I x(h[0]===12){l=N.1e.18(g,k.4O())}I x(h[0]===14){l=N.1e.18(g,k.4P())}I{l=N.1e.18(g,k.2Y())}y U(g)>0?l:""}},"2X":A(a,b){a=a.P(/:/g,"");x(N.D.19(a)>6){a=N.D.1H(a,6,"0")}I{a=a.H(0,6)}x(b!=C&&b[0]!=C&&b[0]==\'2\'){a=a.H(0,2)}I x(b!=C&&b[0]!=C&&b[0]==\'4\'){a=a.H(0,2)+N.S.1f("O").1k.1e.21+a.H(2,4)}I x(b!=C&&b[0]!=C&&b[0]==\'6\'){a=a.H(0,2)+N.S.1f("O").1k.1e.21+a.H(2,4)+N.S.1f("O").1k.1e.21+a.H(4,6)}I{a=a.H(0,2)+N.S.1f("O").1k.1e.21+a.H(2,4)}y a},"2W":A(a,b,c){x(b==C||b[0]==C){N.1g("[1m.2W]L K J M[0](4U G)")}x(a.1u(a.G-b[1].G,b[1].G)!==b[1]){x(c!==1b){c.1f("50",a)}B l=0;1o(B i=0;i52)?2:1;x(l>b[0]){x(b!=C&&b[1]!=C){y N.D.19(a.H(0,i))+b[1]}I{y a.H(0,i)}}}}y a},"P":A(a,b,c){x(b==C||b[0]==C){N.1g("[1m.P]L K J M[0](55 D)")}x(b==C||b[1]==C){N.1g("[1m.P]L K J M[1](P D)")}B d=a.2v(1p(b[0])).5f(1p(b[1]));x(5h b[2]!="1b"&&1p(b[2])=="17"){E.5i[c.1f("5j")]=d}y d},"1U":A(a,b){x(b==C||b[0]==C){N.1g("[1m.1U]L K J M[0](2V G)")}x(b==C||b[1]==C){N.1g("[1m.1U]L K J M[1](P D)")}y N.D.1U(a,U(b[0]),b[1])},"1H":A(a,b){x(b==C||b[0]==C){N.1g("[1m.1H]L K J M[0](2V G)")}x(b==C||b[1]==C){N.1g("[1m.1H]L K J M[1](P D)")}y N.D.1H(a,U(b[0]),b[1])},"2U":A(a,b){x(b===1b||b[0]==C){N.1g("[1m.2U]L K J M[0](2S 18 1Q)")}B c=F N.2N(b[0]);y c.5o(1p(a))},"2M":A(a,b){x(b===1b||b[0]==C){N.1g("[1m.2M]L K J M[0](2S 18 1Q)")}B c=F N.2N(b[0]);y c.5q(1p(a),b[1])}});B t=N.1x=A(b,c){E.1l={O:N.2A(b)?N(b):b,1t:c,1q:16,2b:17,S:C,1i:C};x(N.1q(c)||N.3z(c)){B d=E.1l;d.1q=17;d.S=N(c);d.1i=d.S.1v(":J")?d.S:d.S.1G(":J");B e=E;d.1i=d.1i.3d(A(){x($(E).O("1r")!==1b){x(d.2b){B a=$(E);a.22("1r.1x");a.2t("1r.1x",A(){N().1x(N(E)).1r()})}y E}});d.1t=N.1C.3x(d.1i,"1r")}E.1l.O=b.G>0?b:N(N.1C.2K(E.1l.1i))};t.1j=t.2h;$.1s(t.1j,{"1r":A(f){B g=E.1l;B h=[];B j;B l;B m;B n=g.O.G>0?g.O:N(N.1C.2K(g.1i));x(f!==1b){x(f=0){n=[n[f]]}I{N.1g("[1a.1j.1r]3w 3v 3p 3o 3n")}}I{x(g.1q){f=0;n=[n[f]]}}B o;B p;B q;$(n).26(A(i,b){j={};1o(B k 29 g.1t){m=[];B c=17;$(g.1t[k]).26(A(){l={};l.1Q=E.1V();o=N(E).3m(0).23();q=N.D.19(E[0]).2C();x(q.2i("+")>-1){q=q.2v("+").1N().1V().P(/\\,/g,"1n")}2y{l.2L=t[q](1p(b[k]),o)}2g(e){x(e.1V().2i("1v 3k a A")>-1){N.1g("[1a.1j.1r]\\""+E[0]+"\\" 1v 3j 18 1Q")}I{N.1g(e,e)}}l.27=C;x(!l.2L){B a;x(!(a=N.S.1f("O").1x.2z[N.2O()][q])){a=N.S.1f("O").1x.2z[N.2O()].3R}l.27=N.2z.3S(a,o);c=16}m.1D(l)});x(g.1q){B d=g.1i.1A("#"+k);x(!c){d.3T("2P")}I{d.3U("2P")}x(N().2Q!==1b){p=N(g.1i!=C?d:1b).2Q($(m).3d(A(){x(E.27!=C){y E.27}}).1K()).3W()}I{N.1g("L K 3X 2x-33 32")}}j[k]=m}h.1D(j);j=C});y h}});$.1s(t,{"3Y":A(a){y(N.D.2R(a)!==C)?17:16},"40":A(a){y F Q(/^[a-z\\s]+$/i).R(a)},"43":A(a){y F Q(/^[+-]?\\d+$/).R(a)},"44":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣\\s]+$/).R(a)},"45":A(a){y F Q(/^[a-z-?\\d\\s]+$/i).R(a)},"46":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣-?\\d\\s]+$/).R(a)},"47":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣a-z\\s]+$/i).R(a)},"48":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣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d{2,3}-\\d{3,4}-\\w+|"("")"$/).R(a)}}y F Q(/^\\d{2,3}-\\d{3,4}-\\d{4}$/).R(a)},"2B":A(a,b){a=a.P(/-/g,\'\');x(N.D.19(a).G!=13){a=C;y 16}B c=a.H(0,1);B d=a.H(1,2);B e=a.H(2,3);B f=a.H(3,4);B g=a.H(4,5);B h=a.H(5,6);B i=c*2+d*3+e*4+f*5+g*6+h*7;B j=a.H(6,7);B k=a.H(7,8);B l=a.H(8,9);B m=a.H(9,10);B n=a.H(10,11);B o=a.H(11,12);B p=a.H(12,13);i=i+j*8+k*9+l*2+m*3+n*4+o*5;i=i%11;i=11-i;i=i%10;x(i!=p){y 16}y 17},"2J":A(a,b){a=a.P(/-/g,\'\');x(N.D.19(a).G!=13){a=C;y 16}B c=0;x(a.1u(6,1)!=5&&a.1u(6,1)!=6&&a.1u(6,1)!=7&&a.1u(6,1)!=8){y 16}x(U(a.1u(7,2))%2!=0){y 16}1o(B i=0;i<12;i++){c+=U(a.1u(i,1))*((i%8)+2)}x((((11-(c%11))%10+2)%10)==U(a.1u(12,1))){y 17}y 16},"4M":A(a,b){a=a.P(/-/g,\'\');x(N.D.19(a).G!=13){a=C;y 16}x(U(a.1y(6))>=5&&U(a.1y(6))<=8){y E.2J()}I{y E.2B()}},"3h":A(a,b){B c=/-/g;B d=a.P(c,\'\');B e=F 3f(1,3,7,1,3,7,1,3,5,1);B i,1Z=0,1w,2p;1o(i=0;i<=7;i++){1Z+=e[i]*d.1y(i)}1w="0"+(e[8]*d.1y(8));1w=1w.H(1w.G-2,1w.G);1Z+=2m.2j(1w.1y(0))+2m.2j(1w.1y(1));2p=(10-(1Z%10))%10;x(2m.2j(d.1y(9))==2p){y 17}y 16},"4T":A(a,b){B c=/-/g;B d=a.P(c,\'\');x(d.G!=13){y 16}B e=d.2v("");B f=F 3f(1,2,1,2,1,2,1,2,1,2,1,2);B g=0;B h=0;1o(B i=0;i<12;i++){g+=3l(e[i])*3l(f[i])}h=10-(g%10);h=h%10;x(h!=e[12]){y 16}y 17},"1e":A(c,e){B f=A(d){x(N.D.19(d).G==8){y 17}I{y 16}};B g=A(a){B b=16;x(a%4==0){b=17;x(a%4V==0){b=16}x(a%4W==0){b=17}}y b};B d=c.P(F Q(N.S.1f("O").1k.1e.4X,"4Y"),\'\');x(!f(d)){y 16}B h=[31,28,31,30,31,30,31,31,30,31,30,31];B i=d.H(0,4);B j=d.H(4,6);B k=d.H(6,8);x(k==0){y 16}B l=16;x(g(i)){x(j==2){x(k<=h[j-1]+1){l=17}}I{x(k<=h[j-1]){l=17}}}I{x(k<=h[j-1]){l=17}}y l},"2X":A(a,b){y F Q(/^([3c]\\d|2[0-3])([0-5]\\d){0,2}$/).R(a.P(/:/g,""))},"2s":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.2s]L K J M[0](2s D)");}y(F Q("^("+b[0]+")$")).R(a)},"2r":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.2r]L K J M[0](2r D)");}y(F Q(b[0])).R(a)},"53":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.54]L K J M[0](3q 3r)");}y(F Q(".("+b[0]+")$","i")).R(a)},"57":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.58]L K J M[0](59 D)");}y!(F Q("^("+b[0]+")$")).R(a)},"5a":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.5b]L K J M[0](5c 1p)");}y!(F Q(b[0])).R(a)},"5d":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.5e]L K J M[0](3q 3r)");}y!(F Q(".("+b[0]+")$","i")).R(a)},"3s":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3s]L K J M[0](5g D(:J))");}x(N.D.2R($(b[0]).1I())==C){y 17}y N.D.19(a)==N.D.19($(b[0]).1I())},"3t":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3t]L K J M[0](G)");}y N.D.19(a).G<=U(N.D.1h(b[0]))},"3u":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3u]L K J M[0](G)");}y U(N.D.1h(b[0]))<=N.D.19(a).G},"2q":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.2q]L K J M[0](1M G)");}x(b==C||b[1]==C){1d F 1c("[1a.2q]L K J M[1](1T G");}y U(N.D.1h(b[0]))<=N.D.19(a).G&&N.D.1h(a).G<=U(N.D.19(b[1]))},"3y":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3y]L K J M[0](1T 2a)");}y N.D.2d(N.D.19(a))<=U(N.D.1h(b[0]))},"3B":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3B]L K J M[0](1M 2a)");}y U(N.D.1h(b[0]))<=N.D.2d(N.D.19(a))},"2n":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.2n]L K J M[0](1M 2a)");}x(b==C||b[1]==C){1d F 1c("[1a.2n]L K J M[0](1T 2a)");}y U(N.D.1h(b[0]))<=N.D.2d(N.D.19(a))&&N.D.2d(N.D.19(a))<=U(N.D.1h(b[1]))},"3D":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3D]L K J M[0](1T 1P)");}y U(N.D.1h(a))<=U(N.D.1h(b[0]))},"3E":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3E]L K J M[0](1M 1P)");}y U(N.D.1h(b[0]))<=U(N.D.1h(a))},"2u":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.2u]L K J M[0](1M 1P)");}x(b==C||b[1]==C){1d F 1c("[1a.2u]L K J M[0](1T 1P)");}y U(N.D.1h(b[0]))<=U(N.D.1h(a))&&U(N.D.1h(a))<=U(N.D.1h(b[1]))},"3G":A(a,b){x(b==C||b[0]==C){1d F 1c("[1a.3G]L K J M[0](5v 5w D)");}B c=b[1]!==1b?c=F Q(b[0],b[1]):F Q(b[0]);y c.R(a)}})})(N)})(5x,4u);',62,345,'|||||||||||||||||||||||||||||||||if|return||function|var|null|string|this|new|length|substring|else|input|must|You|args||data|replace|RegExp|test|context|uD7FF|Number|u00A0|uFDF0|uFFEF||uFDCF||||||uF900|false|true|format|trimToEmpty|Validator|undefined|Error|throw|date|attr|error|trimToZero|targetEle|fn|formatter|options|Formatter|_|for|String|isElement|validate|extend|rules|substr|is|c2|validator|charAt|ds|filter|isEmptyObject|element|push|viewContext|id|find|rpad|val|focusout|get|da|minimum|sort|x09|value|rule|obserable|instance|maximum|lpad|toString|obj|refine|x20|chkSum|unformat|timeSepa|unbind|toArray|formatDate||each|msg||in|byte|createEvent|inst|byteLength|parseInt|readonly|catch|prototype|indexOf|floor|trigger|form|Math|rangebyte|data_sync_temp__|remander|rangelength|match|accept|bind|rangevalue|split|sortBy|Natural|try|message|isPlainObject|ssn|toLowerCase|x0d|month|disable|prevent|isWrappedSet|prop|frn|toData|result|numeric|Mask|locale|validate_false__|alert|trimToNull|user|constructor|generic|fill|limit|time|Ymd|x22|||library|UI|datepicker|x0a|x01|x0b|x0c|x7f|trimToVal|NaN|01|map|zipcode|Array|toUpperCase|cno|text|invalid|not|eval|remove_|range|of|out|file|extention|equalTo|maxlength|minlength|index|Row|toRules|maxbyte|isString|view_context__|minbyte|closest|maxvalue|minvalue|use|regexp|public|datarefine|default|commas|method|datafilter|while|hasClass|datepicker__|monthonly|global|replaceMsgVars|addClass|removeClass|datasort|show|import|required|remove|alphabet|caller|tpBind|integer|korean|alphabet_integer|integer_korean|alphabet_korean|alphabet_integer_korean|dash_integer|commas_integer|number|email|onSelect|splice|notify|update|DATA|isNumeric|span|onBeforeHide|block_overlay_msg__|siblings|upper|dataSync|x08|warn|load|x0e|x1f|jQuery|x21|x23|x5b|x5d|x7e|url|https|ftp|lower|Ym|uE000|uF8FF|decimal|trim|phone|capitalize|YmdH|frn_ssn|architecture|YmdHi|YmdHis|phoneNum|02|page|cpno|cut|100|400|dateSepa|gi|datasync|title|charCodeAt|128|acceptfileext|acceptFileExt|target|There|notaccept|notAccept|refused|notmatch|notMatch|unmatch|notacceptfileext|notAcceptFileExt|join|selector|typeof|vo|name|realnum|parseFloat|append|trimtoempty|setGeneric|trimtozero|setNumeric|textarea|trimtoval|grep|no|regular|expression|window|onBeforeShow'.split('|'),0,{})) \ No newline at end of file +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(u,$){B v="0.8.1.8";$.1l.1s(N,{"2G-4M":v});$.1s(N.1l,{2N:N,4i:A(a){y N.O.1A(E,a)},4h:A(a){y N.O.24(E,a)},4f:A(a,b){y N.O.1T(E,a,b)},1j:A(a){y F N.1j(E,a)},1u:A(a){y F N.1u(E,a)}});$.1l.1s(N.1l);N.O={24:A(a,b){x(N.2x(a)){x(a.G==1){x(N.2y(a.1U(0))){y N(E.24(a.1U(0),b))}I{y a}}I{y N(E.24(a.2c(),b))}}I{x(b!=C){y a[b]||[]}I{1q(B c 2d a){y N.4D(c)?a:a[c]}}}},1A:A(a,b){x(b===1d){y a}y N.2x(a)?N(E.1A(a.2c(),b)):$.3J(a,b)},2I:A(c,d){x(d===1d){d=1}I{x(d){d=-1}I{d=1}}y A(a,b){a=N.D.1a(1m(a[c])).P(/-|\\./g,"");b=N.D.1a(1m(b[c])).P(/-|\\./g,"");x(2a(a)&&2a(b)){a=2a(a);b=2a(b)}x(ab){y d*1}y 0}},1T:A(a,b,c){y N.2x(a)?N(a.1T(E.2I(b,c))):a.1T(E.2I(b,c))}};(A(N){B r=N.1D=A(a,b){x(N.1D.3Y!=N.1D.1S){1c F 1b("[N.4n]4q 1w 4O 4Q 2N 1q N.1D, 3s 1S 4R");}E.1E=$(a.1k.S).3l(".3e");x(E.1E.G===0){E.1E=$(a.1k.S).3l("52.5j").5k(".3e")}x(E.1E.G===0){B c=$(N.S.1f("5l").5m.S);B d=c.1G("B#2n");x(d.G===0){d=c.5n(\'\').1G("B#2n")}E.1E=d}B e=E.1E.1S("1D");x(e!==1d){e.26=a;x(b!==1d&&b===17){e.1M.1z(a)}}I{e=E;e.26=a;e.1M=[];e.1M.1z(a);E.1E.1S("1D",e)}y e};r.1l=r.2J;$.1s(r.1l,{"5p":A(){B a=E.26;B b=E.1M;1q(B i=0;i0){x(a[0][c.S.1f("1I")]!==1d){c.1i.1z(c.S.1U(0))}I{1q(B k 2d a[0]){x(c.S.1G("#"+k).G>0){c.1i.1z(c.S.1G("#"+k).1U(0))}}}c.1v=N.1C.3A(c.1i,"18")}}};s.1l=s.2J;$.1s(s.1l,{"18":A(c){B d=E.1k;B f=E;B g=[];B h;B j;B l;x(c!==1d){x(c=0){d.O=[d.O[c]]}I{N.1h("[1n.1l.18]2O 2U 39 3g 3r")}}I{x(d.1p){c=0;d.O=[d.O[c]]}}$(d.O).1Y(A(i,b){h={};1q(B k 2d d.1v){j=1m(b[k]);$(d.1v[k]).1Y(A(){x(d.1p){l=d.1i.1A("#"+k);x(l.G===0){l=1d}}2l{j=s[N.D.1a(E[0]).2o()](j,N(E).2V(0).2c(),l)}2s(e){x(e.22().2K("1w 3t a A")>-1){N.1h("[1n.1l.18]\\""+E[0]+"\\" 1w 3v 18 1Q",e)}I{N.1h(e,e)}}});h[k]=j;x(d.1p){l=d.1i.1A("#"+k);x(l.1w("J:3G, 5t")){l.1F(j);x(d.1X){l.2e("18.1j 1V.1j");l.2w("18.1j",A(){l=d.S.1A("#"+$(E).1f("1I"));x(l.G===0){l=d.S.1G("#"+$(E).1f("1I"))}B a=f.18();x(a.G===1){c=0}$(E).1F(a[c][$(E).1f("1I")])}).2w("1V.1j",A(){x(d.O.G===1){c=0}$(E).1F(f.1V(c,$(E).1f("1I")))})}}I{x(!l.1w(":J")){l.3G(j)}}}j=C}g.1z(h);h=C});y g},"1V":A(a,b){y E.1k.O[a][b]}});$.1s(s,{"5r":A(a,b){x(N.1y(a)){y a}a=a.P(/,/g,"");B c=/(^[+-]?\\d+)(\\d{3})/;a+=\'\';5o(c.R(a)){a=a.P(c,\'$1\'+\',\'+\'$2\')}y a},"2g":A(a,b){x(N.1y(a)){y a}a=a.P(/-/g,"");x(a.G==13){B c="*";x(b!=C&&b[1]!=C){c=b[1]}x(b!=C&&b[0]!=C){a=N.D.1H(a.H(0,13-V(b[0])),13,c);a=a.H(0,6)+"-"+a.H(6,13)}I{a=a.H(0,6)+"-"+a.H(6,13)}}y a},"2R":A(a,b){x(N.D.1a(a).G<5){y a}a=a.P(/-/g,"");a=a.P(/\\s/g,"");x(a.G>10){a=a.H(0,10)}y a.H(0,3)+"-"+a.H(3,5)+"-"+a.H(5,10)},"5i":A(a,b){x(N.1y(a)){y a}y a.2X()},"5h":A(a,b){x(N.1y(a)){y a}y a.2o()},"5f":A(a,b){x(N.1y(a)){y a}B c=a.H(0,1).2X();x(a.G>1){c=c+a.H(1)}y c},"34":A(a,b){x(N.1y(a)){y a}a=a.P(/-/g,"");y a.H(0,3)+"-"+a.H(3,6)},"56":A(a,b){x(N.1y(a)){y a}a=a.P(/-/g,"");y a.P(/(^55.{0}|^38.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3")},"51":A(a,b){2l{a=1m(50(a))}2s(e){y a}y a=="3h"?a.P("3h",""):a},"4Z":A(a,b){y N.D.1a(a)},"4U":A(a,b){y N.D.1g(a)},"4S":A(a,b){x(b==C||b[0]==C){N.1h("[1n.3q]K L J M[0](4P 1P)")}y N.D.3q(a,b[0])},"1e":A(g,h,i){x(h===1d){y g}g=g.P(/[^0-9]/g,"");x(N.3D!==1d){x(h[1]!==1d&&(h[1]==="1e"||h[1]==="2f")&&i!==1d&&!i.4N("4K")){B j=h[1]==="2f"?17:16;i.3D({4J:j,3I:A(a,b){a.2e("1J.2h.18.1e",N.1C.2i);a.4u("1J.2h.18.1e",N.1C.2i)},4r:A(a,b,c){B d=N.S.1f("O").1j.1e;B e=16;x(a.2j("2k")){a.2j("2k",16);e=17}B f=b.1Z.20(b.18);x(b.1Z.20("Y").G<=3){f=f.P(b.1Z.20("Y"),N.D.1K(b.1Z.20("Y"),4,"0"))}x(!c&&f.G===7){f="0"+f}I x(c&&f.G===5){f="0"+f}a.1F(f);x(e){a.2j("2k",17)}y 16},4o:A(a,b){a.2e("1J.2h.18.1e",N.1C.2i).2p("1J.2q.1r").2p("1J.2q.4m").2p("1J.2q.18")}})}}I{N.4l("x 3s 1e & 2f 1k, 4k 2G-3a 3b")}x(h[0]!==1d){B k=N.S.1f("O").1j.1e;B l;x(h[0]===4){l=N.1e.18(g,"Y")}I x(h[0]===6){l=N.1e.18(g,k.4j())}I x(h[0]===8){l=N.1e.18(g,k.3d())}I x(h[0]===10){l=N.1e.18(g,k.4g())}I x(h[0]===12){l=N.1e.18(g,k.4e())}I x(h[0]===14){l=N.1e.18(g,k.43())}I{l=N.1e.18(g,k.3d())}y V(g)>0?l:""}},"3i":A(a,b){a=a.P(/:/g,"");x(N.D.1a(a)>6){a=N.D.1H(a,6,"0")}I{a=a.H(0,6)}x(b!=C&&b[0]!=C&&b[0]==\'2\'){a=a.H(0,2)}I x(b!=C&&b[0]!=C&&b[0]==\'4\'){a=a.H(0,2)+N.S.1f("O").1j.1e.29+a.H(2,4)}I x(b!=C&&b[0]!=C&&b[0]==\'6\'){a=a.H(0,2)+N.S.1f("O").1j.1e.29+a.H(2,4)+N.S.1f("O").1j.1e.29+a.H(4,6)}I{a=a.H(0,2)+N.S.1f("O").1j.1e.29+a.H(2,4)}y a},"3k":A(a,b,c){x(b==C||b[0]==C){N.1h("[1n.3k]K L J M[0](42 G)")}x(a.1t(a.G-b[1].G,b[1].G)!==b[1]){x(c!==1d){c.1f("3W",a)}B l=0;1q(B i=0;i3R)?2:1;x(l>b[0]){x(b!=C&&b[1]!=C){y N.D.1a(a.H(0,i))+b[1]}I{y a.H(0,i)}}}}y a},"P":A(a,b,c){x(b==C||b[0]==C){N.1h("[1n.P]K L J M[0](3Q D)")}x(b==C||b[1]==C){N.1h("[1n.P]K L J M[1](P D)")}B d=a.2D(1m(b[0])).3P(1m(b[1]));x(3O b[2]!="1d"&&1m(b[2])=="17"){E.3N[c.1f("3M")]=d}y d},"1K":A(a,b){x(b==C||b[0]==C){N.1h("[1n.1K]K L J M[0](3w G)")}x(b==C||b[1]==C){N.1h("[1n.1K]K L J M[1](P D)")}y N.D.1K(a,V(b[0]),b[1])},"1H":A(a,b){x(b==C||b[0]==C){N.1h("[1n.1H]K L J M[0](3w G)")}x(b==C||b[1]==C){N.1h("[1n.1H]K L J M[1](P D)")}y N.D.1H(a,V(b[0]),b[1])},"3x":A(a,b){x(b===1d||b[0]==C){N.1h("[1n.3x]K L J M[0](3y 18 1Q)")}B c=F N.3z(b[0]);y c.3L(1m(a))},"3B":A(a,b){x(b===1d||b[0]==C){N.1h("[1n.3B]K L J M[0](3y 18 1Q)")}B c=F N.3z(b[0]);y c.3K(1m(a),b[1])}});B t=N.1u=A(b,c){E.1k={O:N.2y(b)?N(b):b,1v:c,1p:16,1X:17,S:C,1i:C};x(N.1p(c)||N.3F(c)){B d=E.1k;d.1p=17;d.S=N(c);d.1i=d.S.1w(":J")?d.S:d.S.1G(":J");B e=E;d.1i=d.1i.3E(A(){x($(E).O("1r")!==1d){x(d.1X){B a=$(E);a.2e("1r.1u");a.2w("1r.1u",A(){N().1u(N(E)).1r()})}y E}});d.1v=N.1C.3A(d.1i,"1r")}E.1k.O=b.G>0?b:N(N.1C.2L(E.1k.1i))};t.1l=t.2J;$.1s(t.1l,{"1r":A(f){B g=E.1k;B h=[];B j;B l;B m;B n=g.O.G>0?g.O:N(N.1C.2L(g.1i));x(f!==1d){x(f=0){n=[n[f]]}I{N.1h("[19.1l.1r]2O 2U 39 3g 3r")}}I{x(g.1p){f=0;n=[n[f]]}}B o;B p;B q;$(n).1Y(A(i,b){j={};1q(B k 2d g.1v){m=[];B c=17;$(g.1v[k]).1Y(A(){l={};l.1Q=E.22();o=N(E).2V(0).2c();q=N.D.1a(E[0]).2o();x(q.2K("+")>-1){q=q.2D("+").1T().22().P(/\\,/g,"1o")}2l{x(q!=="3u"&&N.D.2F(1m(b[k]))===C){l.2E=17}I{l.2E=t[q](1m(b[k]),o)}}2s(e){x(e.22().2K("1w 3t a A")>-1){N.1h("[19.1l.1r]\\""+E[0]+"\\" 1w 3v 18 1Q")}I{N.1h(e,e)}}l.2b=C;x(!l.2E){B a;x(!(a=N.S.1f("O").1u.2B[N.3o()][q])){a=N.S.1f("O").1u.2B[N.3o()].3T}l.2b=N.2B.3U(a,o);c=16}m.1z(l)});x(g.1p){B d=g.1i.1A("#"+k);x(!c){d.3V("3n")}I{d.3X("3n")}x(N().3m!==1d){p=N(g.1i!=C?d:1d).3m($(m).3E(A(){x(E.2b!=C){y E.2b}}).1U()).3Z()}I{N.1h("K L 40 2G-3a 3b")}}j[k]=m}h.1z(j);j=C});y h}});$.1s(t,{"3u":A(a){y(N.D.2F(a)!==C)?17:16},"41":A(a){y F Q(/^[a-z\\s]+$/i).R(a)},"44":A(a){y F Q(/^[+-]?\\d+$/).R(a)},"45":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣\\s]+$/).R(a)},"46":A(a){y F Q(/^[a-z-?\\d\\s]+$/i).R(a)},"47":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣-?\\d\\s]+$/).R(a)},"48":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣a-z\\s]+$/i).R(a)},"49":A(a){y F Q(/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣a-z-?\\d\\s]+$/i).R(a)},"4a":A(a){y F Q(/^(\\d|-)+$/).R(a)},"4b":A(a){y F Q(/^(\\d|,)+$/).R(a)},"4c":A(a){y F Q(/^[+-]?(\\d|,|\\.)+$/).R(a)},"4d":A(a){y F Q(/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^1o`{\\|}~]|[\\X-\\T\\U-\\Z\\15-\\W])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\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H(9,10);B n=a.H(10,11);B o=a.H(11,12);B p=a.H(12,13);i=i+j*8+k*9+l*2+m*3+n*4+o*5;i=i%11;i=11-i;i=i%10;x(i!=p){y 16}y 17},"2M":A(a,b){a=a.P(/-/g,\'\');x(N.D.1a(a).G!=13){a=C;y 16}B c=0;x(a.1t(6,1)!=5&&a.1t(6,1)!=6&&a.1t(6,1)!=7&&a.1t(6,1)!=8){y 16}x(V(a.1t(7,2))%2!=0){y 16}1q(B i=0;i<12;i++){c+=V(a.1t(i,1))*((i%8)+2)}x((((11-(c%11))%10+2)%10)==V(a.1t(12,1))){y 17}y 16},"4L":A(a,b){a=a.P(/-/g,\'\');x(N.D.1a(a).G!=13){a=C;y 16}x(V(a.1B(6))>=5&&V(a.1B(6))<=8){y E.2M()}I{y E.2g()}},"2R":A(a,b){B c=/-/g;B d=a.P(c,\'\');B e=F 3H(1,3,7,1,3,7,1,3,5,1);B i,1W=0,1x,2C;1q(i=0;i<=7;i++){1W+=e[i]*d.1B(i)}1x="0"+(e[8]*d.1B(8));1x=1x.H(1x.G-2,1x.G);1W+=2A.2z(1x.1B(0))+2A.2z(1x.1B(1));2C=(10-(1W%10))%10;x(2A.2z(d.1B(9))==2C){y 17}y 16},"4T":A(a,b){B c=/-/g;B d=a.P(c,\'\');x(d.G!=13){y 16}B e=d.2D("");B f=F 3H(1,2,1,2,1,2,1,2,1,2,1,2);B g=0;B h=0;1q(B i=0;i<12;i++){g+=3j(e[i])*3j(f[i])}h=10-(g%10);h=h%10;x(h!=e[12]){y 16}y 17},"1e":A(c,e){B f=A(d){x(N.D.1a(d).G==8){y 17}I{y 16}};B g=A(a){B b=16;x(a%4==0){b=17;x(a%4V==0){b=16}x(a%4W==0){b=17}}y b};B d=c.P(F Q(N.S.1f("O").1j.1e.4X,"4Y"),\'\');x(!f(d)){y 16}B h=[31,28,31,30,31,30,31,31,30,31,30,31];B i=d.H(0,4);B j=d.H(4,6);B k=d.H(6,8);x(k==0){y 16}B l=16;x(g(i)){x(j==2){x(k<=h[j-1]+1){l=17}}I{x(k<=h[j-1]){l=17}}}I{x(k<=h[j-1]){l=17}}y l},"3i":A(a,b){y F Q(/^([38]\\d|2[0-3])([0-5]\\d){0,2}$/).R(a.P(/:/g,""))},"2v":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2v]K L J M[0](2v D)");}y(F Q("^("+b[0]+")$")).R(a)},"2u":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2u]K L J M[0](2u D)");}y(F Q(b[0])).R(a)},"53":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.54]K L J M[0](37 35)");}y(F Q(".("+b[0]+")$","i")).R(a)},"57":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.58]K L J M[0](59 D)");}y!(F Q("^("+b[0]+")$")).R(a)},"5a":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.5b]K L J M[0](5c 1m)");}y!(F Q(b[0])).R(a)},"5d":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.5e]K L J M[0](37 35)");}y!(F Q(".("+b[0]+")$","i")).R(a)},"2Z":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2Z]K L J M[0](5g D(:J))");}x(N.D.2F($(b[0]).1F())==C){y 17}y N.D.1a(a)==N.D.1a($(b[0]).1F())},"2Y":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2Y]K L J M[0](G)");}y N.D.1a(a).G<=V(N.D.1g(b[0]))},"2W":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2W]K L J M[0](G)");}y V(N.D.1g(b[0]))<=N.D.1a(a).G},"2t":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2t]K L J M[0](1O G)");}x(b==C||b[1]==C){1c F 1b("[19.2t]K L J M[1](1N G");}y V(N.D.1g(b[0]))<=N.D.1a(a).G&&N.D.1g(a).G<=V(N.D.1a(b[1]))},"2P":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2P]K L J M[0](1N 27)");}y N.D.21(N.D.1a(a))<=V(N.D.1g(b[0]))},"3p":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.3p]K L J M[0](1O 27)");}y V(N.D.1g(b[0]))<=N.D.21(N.D.1a(a))},"2H":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2H]K L J M[0](1O 27)");}x(b==C||b[1]==C){1c F 1b("[19.2H]K L J M[0](1N 27)");}y V(N.D.1g(b[0]))<=N.D.21(N.D.1a(a))&&N.D.21(N.D.1a(a))<=V(N.D.1g(b[1]))},"3f":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.3f]K L J M[0](1N 1P)");}y V(N.D.1g(a))<=V(N.D.1g(b[0]))},"2Q":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2Q]K L J M[0](1O 1P)");}y V(N.D.1g(b[0]))<=V(N.D.1g(a))},"2m":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.2m]K L J M[0](1O 1P)");}x(b==C||b[1]==C){1c F 1b("[19.2m]K L J M[0](1N 1P)");}y V(N.D.1g(b[0]))<=V(N.D.1g(a))&&V(N.D.1g(a))<=V(N.D.1g(b[1]))},"3C":A(a,b){x(b==C||b[0]==C){1c F 1b("[19.3C]K L J M[0](5v 5w D)");}B c=b[1]!==1d?c=F Q(b[0],b[1]):F Q(b[0]);y c.R(a)}})})(N)})(5x,5y);',62,345,'|||||||||||||||||||||||||||||||||if|return||function|var|null|string|this|new|length|substring|else|input|You|must|args||data|replace|RegExp|test|context|uD7FF|uF900|Number|uFFEF|u00A0||uFDCF||||||uFDF0|false|true|format|Validator|trimToEmpty|Error|throw|undefined|date|attr|trimToZero|error|targetEle|formatter|options|fn|String|Formatter|_|isElement|for|validate|extend|substr|validator|rules|is|c2|isEmptyObject|push|filter|charAt|element|ds|viewContext|val|find|rpad|id|focusout|lpad|da|obserable|maximum|minimum|value|rule|x09|instance|sort|get|unformat|chkSum|createEvent|each|obj|formatDate|byteLength|toString|x20|refine||inst|byte||timeSepa|parseInt|msg|toArray|in|unbind|month|ssn|prevent|disable|prop|readonly|try|rangevalue|data_sync_temp__|toLowerCase|trigger|form|x0d|catch|rangelength|match|accept|bind|isWrappedSet|isPlainObject|floor|Math|message|remander|split|result|trimToNull|Natural|rangebyte|sortBy|prototype|indexOf|toData|frn|constructor|Row|maxbyte|minvalue|cno|x7f|x0c|index|remove_|minlength|toUpperCase|maxlength|equalTo|||x0b|x01|zipcode|extention|x0a|file|01|out|UI|library|x22|Ymd|view_context__|maxvalue|of|NaN|time|eval|limit|closest|alert|validate_false__|locale|minbyte|trimToVal|range|use|not|required|invalid|fill|generic|user|Mask|toRules|numeric|regexp|datepicker|map|isString|text|Array|onBeforeShow|grep|setNumeric|setGeneric|name|vo|typeof|join|target|128|charCodeAt|global|replaceMsgVars|addClass|title|removeClass|caller|show|import|alphabet|cut|YmdHis|integer|korean|alphabet_integer|integer_korean|alphabet_korean|alphabet_integer_korean|dash_integer|commas_integer|number|email|YmdHi|datasort|YmdH|datarefine|datafilter|Ym|load|warn|dataSync|datasync|onBeforeHide|x08|There|onSelect|x0e|x1f|tpBind|x21|x23|x5b|x5d|x7e|url|https|ftp|isNumeric|uE000|uF8FF|decimal|trim|phone|monthonly|datepicker__|frn_ssn|DATA|hasClass|no|default|public|method|trimtoval|cpno|trimtozero|100|400|dateSepa|gi|trimtoempty|parseFloat|realnum|span|acceptfileext|acceptFileExt|02|phoneNum|notaccept|notAccept|refused|notmatch|notMatch|unmatch|notacceptfileext|notAcceptFileExt|capitalize|selector|lower|upper|block_overlay_msg__|siblings|architecture|page|append|while|remove|splice|commas|notify|textarea|update|regular|expression|window|jQuery'.split('|'),0,{})) \ No newline at end of file diff --git a/src/natural.data.js b/src/natural.data.js index 9e15d26e5..0b79bf9b8 100644 --- a/src/natural.data.js +++ b/src/natural.data.js @@ -1,5 +1,5 @@ /*! - * Natural-DATA v0.8.1.7 + * Natural-DATA v0.8.1.8 * bbalganjjm@gmail.com * * Copyright 2014 KIM HWANG MAN @@ -8,7 +8,7 @@ * Date: 2014-09-26T11:11Z */ (function(window, $) { - var version = "0.8.1.7"; + var version = "0.8.1.8"; // N local variables $.fn.extend(N, { @@ -613,7 +613,11 @@ rule = rule.split("+").sort().toString().replace(/\,/g, "_"); } try { - retTempObj.result = Validator[rule](String(obj[k]), args); + if (rule !== "required" && N.string.trimToNull(String(obj[k])) === null) { + retTempObj.result = true; + } else { + retTempObj.result = Validator[rule](String(obj[k]), args); + } } catch (e) { if (e.toString().indexOf("is not a function") > -1) { N.error("[Validator.fn.validate]\"" + this[0] + "\" is invalid format rule");