MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / trimEnd

Method trimEnd

benchmark/data-min.js:832–843  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

830 return this;
831 }
832 trimEnd(t) {
833 const e = new RegExp((t || '\\s') + '+$');
834 let n,
835 i = this.sources.length - 1;
836 do
837 if (((n = this.sources[i--]), !n)) {
838 this.intro = this.intro.replace(e, '');
839 break;
840 }
841 while (!n.content.trimEndAborted(t));
842 return this;
843 }
844}
845export { S as Bundle, b as SourceMap, f as default };

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.45
trimEndAbortedMethod · 0.45

Tested by

no test coverage detected