From 580a0f8388c78d1777a2c556b2d759b614b52901 Mon Sep 17 00:00:00 2001 From: Zswang Date: Tue, 30 Sep 2014 17:05:19 +0800 Subject: [PATCH] release --- dist/jhtmls.min.js | 4 ++-- dist/jhtmls.min.js.map | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/jhtmls.min.js b/dist/jhtmls.min.js index 88327f3..5a405cd 100644 --- a/dist/jhtmls.min.js +++ b/dist/jhtmls.min.js @@ -1,2 +1,2 @@ -var jhtmls="undefined"==typeof exports?jhtmls||{}:exports;void function(e){"use strict";function n(e){return String(e).replace(/["<>& ]/g,function(e){return"&"+u[e]+";"})}function t(e){var n=[];return n.push("with(this){"),n.push(e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(e){return['!#{unescape("',escape(e),'")}'].join("")}).replace(/[\r\n]+/g,"\n").replace(/^\n+|\s+$/gm,"").replace(/^([ \w\t_$]*([^&\^?|\n\w\/'"{}\[\]+\-():; \t=\.$_]|:\/\/).*$|^(?!\s*(else|do|try|finally|void|typeof\s[\w$_]*)\s*$)[^'":;{}()\n|=&\/^?]+$)\s?/gm,function(e){return e=e.replace(/&none;/g,"").replace(/["'\\]/g,"\\$&").replace(/\n/g,"\\n").replace(/(!?#)\{(.*?)\}|(!?\$)([a-z_]+\w*(?:\.[a-z_]+\w*)*)/g,function(e,n,t,r,u){if(r&&(n=r,t=u),!t)return"";t=t.replace(/\\n/g,"\n").replace(/\\([\\'"])/g,"$1");var o=/^[a-z$][\w+$]+$/i.test(t)&&!/^(true|false|NaN|null|this)$/.test(t);return["',",o?["typeof ",t,"==='undefined'?'':"].join(""):"","#"===n||"$"===n?"_encode_":"","(",t,"),'"].join("")}),e=["'",e,"'"].join("").replace(/^'',|,''$/g,""),e?["_output_.push(",e,");"].join(""):""})),n.push("}"),new Function("_output_","_encode_","helper","jhtmls",n.join(""))}function r(r,u,o){"function"==typeof r&&(r=String(r).replace(/^[^\{]*\{\s*\/\*!?[ \f\t\v]*\n?|[ \f\t\v]*\*\/[;|\s]*\}$/g,""));var i=t(r),s=function(t,r){r=r||e;var u=[];return i.call(t,u,n,r,e),u.join("")};return arguments.length<=1?s:s(u,o)}var u={'"':"quot","<":"lt",">":"gt","&":"amp"," ":"nbsp"};e.render=r}(jhtmls); -//# sourceMappingURL=dist/jhtmls.min.js.map \ No newline at end of file +var jhtmls="undefined"==typeof exports?jhtmls||{}:exports;void function(e){"use strict";function n(e){return String(e).replace(/["<>& ]/g,function(e){return"&"+u[e]+";"})}function t(e){var n=[];return n.push("with(this){"),n.push(e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(e){return['!#{unescape("',escape(e),'")}'].join("")}).replace(/[\r\n]+/g,"\n").replace(/^\n+|\s+$/gm,"").replace(/^([ \w\t_$]*([^&\^?|\n\w\/'"{}\[\]+\-():; \t=\.$_]|:\/\/).*$|^(?!\s*(else|do|try|finally|void|typeof\s[\w$_]*)\s*$)[^'":;{}()\n|=&\/^?]+$)\s?/gm,function(e){return e=e.replace(/&none;/g,"").replace(/["'\\]/g,"\\$&").replace(/\n/g,"\\n").replace(/(!?#)\{(.*?)\}|(!?\$)([a-z_]+\w*(?:\.[a-z_]+\w*)*)/g,function(e,n,t,r,u){if(r&&(n=r,t=u),!t)return"";t=t.replace(/\\n/g,"\n").replace(/\\([\\'"])/g,"$1");var o=/^[a-z$][\w+$]+$/i.test(t)&&!/^(true|false|NaN|null|this)$/.test(t);return["',",o?["typeof ",t,"==='undefined'?'':"].join(""):"","#"===n||"$"===n?"_encode_":"","(",t,"),'"].join("")}),e=["'",e,"'"].join("").replace(/^'',|,''$/g,""),e?["_output_.push(",e,");"].join(""):""})),n.push("}"),new Function("_output_","_encode_","helper","jhtmls",n.join(""))}function r(r,u,o){"function"==typeof r&&(r=String(r).replace(/^[^\{]*\{\s*\/\*!?[ \f\t\v]*\n?|[ \f\t\v]*\*\/[;|\s]*\}$/g,""));var i=t(r),c=function(t,r){var u=[];return"undefined"==typeof r&&(r=function(t){i.call(t,u,n,r,e)}),i.call(t,u,n,r,e),u.join("")};return arguments.length<=1?c:c(u,o)}var u={'"':"quot","<":"lt",">":"gt","&":"amp"," ":"nbsp"};e.render=r}(jhtmls); +//# sourceMappingURL=jhtmls.min.js.map \ No newline at end of file diff --git a/dist/jhtmls.min.js.map b/dist/jhtmls.min.js.map index 1403f77..a46c136 100644 --- a/dist/jhtmls.min.js.map +++ b/dist/jhtmls.min.js.map @@ -1 +1 @@ -{"version":3,"file":"dist/jhtmls.min.js","sources":["?"],"names":["jhtmls","exports","encodeHTML","text","String","replace","all","htmlEncodeDict","build","template","body","push","escape","join","expression","flag","value","flag2","value2","identifier","test","Function","render","data","helper","fn","format","d","h","output","call","arguments","length","\"","<",">","&"," "],"mappings":"AAAA,GAAIA,QAA4B,mBAAZC,SAA0BD,WAAeC,YAExD,UAASA,GACZ,YAoBA,SAASC,GAAWC,GAClB,MAAOC,QAAOD,GAAME,QAAQ,WAAY,SAASC,GAC/C,MAAO,IAAMC,EAAeD,GAAO,MAgBvC,QAASE,GAAMC,GACb,GAAIC,KAwDJ,OAvDAA,GAAKC,KAAK,eACVD,EAAKC,KAAKF,EACPJ,QAAQ,uCAAwC,SAASC,GACxD,OAAQ,gBAAiBM,OAAON,GAAM,OAAOO,KAAK,MAEnDR,QAAQ,WAAY,MACpBA,QAAQ,cAAe,IACvBA,QACC,kJACA,SAASS,GAiCP,MA9BAA,GAAaA,EACVT,QAAQ,UAAW,IACnBA,QAAQ,UAAW,QACnBA,QAAQ,MAAO,OACfA,QACC,sDACA,SAASC,EAAKS,EAAMC,EAAOC,EAAOC,GAKhC,GAJID,IACFF,EAAOE,EACPD,EAAQE,IAELF,EACH,MAAO,EAETA,GAAQA,EAAMX,QAAQ,OAAQ,MAAMA,QAAQ,cAAe,KAE3D,IAAIc,GAAa,mBAAmBC,KAAKJ,KACrC,+BAA+BI,KAAKJ,EAExC,QAAQ,KACNG,GAAc,UAAWH,EAAO,sBAAsBH,KAAK,IAAM,GACvD,MAATE,GAAyB,MAATA,EAAe,WAAa,GAC7C,IAAKC,EAAO,OACZH,KAAK,MAKbC,GAAc,IAAKA,EAAY,KAAKD,KAAK,IAAIR,QAAQ,aAAc,IAE/DS,GACM,iBAAkBA,EAAY,MAAMD,KAAK,IAG5C,MAIbH,EAAKC,KAAK,KAKH,GAAIU,UACT,WAAY,WAAY,SAAU,SAClCX,EAAKG,KAAK,KAWd,QAASS,GAAOb,EAAUc,EAAMC,GAEN,kBAAbf,KACTA,EAAWL,OAAOK,GAAUJ,QAC1B,4DACA,IAIJ,IAAIoB,GAAKjB,EAAMC,GAEXiB,EAAS,SAASC,EAAGC,GACvBA,EAAIA,GAAK3B,CACT,IAAI4B,KAEJ,OADAJ,GAAGK,KAAKH,EAAGE,EAAQ3B,EAAY0B,EAAG3B,GAC3B4B,EAAOhB,KAAK,IAGrB,OAAIkB,WAAUC,QAAU,EACfN,EAGFA,EAAOH,EAAMC,GA1HtB,GAAIjB,IACF0B,IAAK,OACLC,IAAK,KACLC,IAAK,KACLC,IAAK,MACLC,IAAK,OAwHPpC,GAAQqB,OAASA,GAEjBtB"} \ No newline at end of file +{"version":3,"file":"dist/jhtmls.min.js","sources":["?"],"names":["jhtmls","exports","encodeHTML","text","String","replace","all","htmlEncodeDict","build","template","body","push","escape","join","expression","flag","value","flag2","value2","identifier","test","Function","render","data","helper","fn","format","d","h","output","call","arguments","length","\"","<",">","&"," "],"mappings":"AAAA,GAAIA,QAA4B,mBAAZC,SAA0BD,WAAeC,YAExD,UAASA,GACZ,YAoBA,SAASC,GAAWC,GAClB,MAAOC,QAAOD,GAAME,QAAQ,WAAY,SAASC,GAC/C,MAAO,IAAMC,EAAeD,GAAO,MAgBvC,QAASE,GAAMC,GACb,GAAIC,KAwDJ,OAvDAA,GAAKC,KAAK,eACVD,EAAKC,KAAKF,EACPJ,QAAQ,uCAAwC,SAASC,GACxD,OAAQ,gBAAiBM,OAAON,GAAM,OAAOO,KAAK,MAEnDR,QAAQ,W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