MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / stringtrim

Function stringtrim

lib/sanitize-html.js:2254–2257  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2252}
2253
2254function stringtrim (str) {
2255 if (str.trim) return str.trim()
2256 return str.replace(/^\s+|\s+$/g, '')
2257}
2258
2259function toHex (n) {
2260 if (n < 16) return '0' + n.toString(16)

Callers 1

base64cleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected