MCPcopy Index your code
hub / github.com/TruthHun/BookStack / trim

Function trim

static/editor.md/editormd.amd.js:3379–3381  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3377 */
3378
3379 var trim = function(str) {
3380 return (!String.prototype.trim) ? str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "") : str.trim();
3381 };
3382
3383 editormd.trim = trim;
3384

Callers 1

editormd.amd.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected