v10.28.0
+ +Removes leading and trailing whitespace from a string, and replaces every run of whitespace inside it with a single space.
+Input
+{{ " Hello there,
+ Major Tom. " | squish }}
+
+Output
+Hello there, Major Tom.
+
+ diff --git a/api/index.html b/api/index.html index 5c2aba969..abed946e4 100644 --- a/api/index.html +++ b/api/index.html @@ -205,6 +205,7 @@
Hello, World! @#$%
SGVsbG8sIFdvcmxkISBAIyQl
Thanks to these wonderful people! See contribution guidelines if you'd like to help.
diff --git a/js/liquid.browser.min.js b/js/liquid.browser.min.js index cd2e5735d..804a1a111 100644 --- a/js/liquid.browser.min.js +++ b/js/liquid.browser.min.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).liquidjs={})}(this,function(h){"use strict";var j=function(e,t){return(j=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var x=function(){return(x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r