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

Function trim

static/editor.md/editormd.js:3359–3361  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3357 */
3358
3359 var trim = function(str) {
3360 return (!String.prototype.trim) ? str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "") : str.trim();
3361 };
3362
3363 editormd.trim = trim;
3364

Callers 1

editormd.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected