Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TruthHun/BookStack
/ stringtrim
Function
stringtrim
static/word2md/mammoth.browser.js:11350–11353 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
11348
}
11349
11350
function
stringtrim (str) {
11351
if
(str.trim)
return
str.trim()
11352
return
str.replace(/^\s+|\s+$/g,
''
)
11353
}
11354
11355
function
toHex (n) {
11356
if
(n < 16)
return
'0'
+ n.toString(16)
Callers
1
base64clean
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected