snakeskin
Advanced tools
Comparing version 4.0.18 to 4.0.19
{ | ||
"name": "Snakeskin", | ||
"main": "build/snakeskin.min.js", | ||
"version": "4.0.18", | ||
"version": "4.0.19", | ||
"homepage": "https://github.com/kobezzza/Snakeskin", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
/*! | ||
* Snakeskin v4.0.18 (live) | ||
* Snakeskin v4.0.19 (live) | ||
* https://github.com/kobezzza/Snakeskin | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: Sat, 16 Aug 2014 16:21:29 GMT | ||
* Date: Sun, 17 Aug 2014 09:03:41 GMT | ||
*/ | ||
@@ -31,3 +31,3 @@ | ||
*/ | ||
VERSION: [4, 0, 18], | ||
VERSION: [4, 0, 19], | ||
@@ -34,0 +34,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
/*! Snakeskin v4.0.18 (live) | https://github.com/kobezzza/Snakeskin/blob/master/LICENSE */Array.isArray=Array.isArray||function(h){return"[object Array]"==={}.toString.call(h)};String.prototype.trim=String.prototype.trim||function(){for(var h=this.replace(/^\s\s*/,""),k=h.length,l=/\s/;l.test(h.charAt(--k)););return h.substring(0,k+1)};var e={VERSION:[4,0,18],a:{},Filters:{},Vars:{},LocalVars:{},cache:{}}; | ||
/*! Snakeskin v4.0.19 (live) | https://github.com/kobezzza/Snakeskin/blob/master/LICENSE */Array.isArray=Array.isArray||function(h){return"[object Array]"==={}.toString.call(h)};String.prototype.trim=String.prototype.trim||function(){for(var h=this.replace(/^\s\s*/,""),k=h.length,l=/\s/;l.test(h.charAt(--k)););return h.substring(0,k+1)};var e={VERSION:[4,0,19],a:{},Filters:{},Vars:{},LocalVars:{},cache:{}}; | ||
(function(){function h(a){return n[a]}function k(a){return p[a]}var l="undefined"===typeof window&&"undefined"!==typeof exports;e.importFilters=function(a,c){var b=e.Filters;if(c)for(var d=c.split("."),f=-1;++f<d.length;)b[d[f]]||(b[d[f]]={}),b=b[d[f]];for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g])};var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},q=/[&<>"'\/]/g,r=/([$\w]\s*=\s*)([^"'\s>=]+)/g,s=/(javascript)(:|;)/;e.Filters.html=function(a,c){var b=a+"";c&&(b=b.replace(r, | ||
@@ -3,0 +3,0 @@ '$1"$2"'));b=b.replace(q,k);c&&(b=b.replace(s,"$1$2"));return b};e.Filters.undef=function(a){return void 0!==a?a:""};var n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"},t=/&|<|>|"|'|//g;e.Filters.uhtml=function(a){return(a+"").replace(t,h)};var u=/<\/?[^>]+>/g;e.Filters.stripTags=function(a){return(a+"").replace(u,"")};var v=/%5B/g,w=/%5D/g;e.Filters.uri=function(a){return encodeURI(a+"").replace(v,"[").replace(w,"]")};e.Filters.upper=function(a){return(a+ |
@@ -150,10 +150,14 @@ var commandRgxp = /([^\s]+).*/; | ||
var parts = decl.command.split(INLINE_COMMAND), | ||
var parts = void 0, | ||
txt = void 0; | ||
if (dir) { | ||
parts = decl.command.split(INLINE_COMMAND); | ||
txt = parts.slice(1).join(INLINE_COMMAND); | ||
txt = txt && txt.trim(); | ||
} | ||
txt = txt && txt.trim(); | ||
struct = obj; | ||
res += space + s + (dir ? parts[0] : decl.command) + e; | ||
res += space + s + parts[0] + e; | ||
if (obj.block) { | ||
@@ -169,3 +173,3 @@ res += (("" + s) + ("__&__" + e) + ""); | ||
if (txt) { | ||
if (dir && txt) { | ||
var inline = { | ||
@@ -172,0 +176,0 @@ dir: false, |
@@ -11,3 +11,3 @@ //#include ./es5shim.live.js | ||
*/ | ||
VERSION: [4, 0, 18], | ||
VERSION: [4, 0, 19], | ||
@@ -14,0 +14,0 @@ /** |
{ | ||
"name": "snakeskin", | ||
"version": "4.0.18", | ||
"version": "4.0.19", | ||
"main": "snakeskin.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1051514
20800