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

Function trim

src/editormd.js:3297–3299  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3295 */
3296
3297 var trim = function(str) {
3298 return (!String.prototype.trim) ? str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "") : str.trim();
3299 };
3300
3301 editormd.trim = trim;
3302

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…