MCPcopy
hub / github.com/pandao/editor.md / trim

Function trim

editormd.js:3309–3311  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3307 */
3308
3309 var trim = function(str) {
3310 return (!String.prototype.trim) ? str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "") : str.trim();
3311 };
3312
3313 editormd.trim = trim;
3314

Callers 1

editormd.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…