dropkiq
Version:
Liquid Expressions Simplified
1 lines • 803 B
JavaScript
;var __extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var token_1=require("./token"),underscore_1=require("../util/underscore"),DelimitedToken=function(e){function t(t,r,n,o,i,u,s,c){var _=e.call(this,t,n,o,i,c)||this,l="-"===r[0],a="-"===underscore_1.last(r);return _.value=r.slice(l?1:0,a?-1:r.length).trim(),_.trimLeft=l||u,_.trimRight=a||s,_}return __extends(t,e),t}(token_1.Token);exports.DelimitedToken=DelimitedToken;