Newer
Older
alert / js / node_modules / stream-http / test / server / static / test-polyfill.js
@Réz István Réz István on 18 Nov 2021 234 bytes first commit
if (!String.prototype.trim) {
  (function() {
    // Make sure we trim BOM and NBSP
    var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
    String.prototype.trim = function() {
      return this.replace(rtrim, '');
    };
  })();
}