Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ trim
Method
trim
src/MagicString.js:742–744 ·
view source on GitHub ↗
(charType)
Source
from the content-addressed store, hash-verified
740
}
741
742
trim(charType) {
743
return
this.trimStart(charType).trimEnd(charType);
744
}
745
746
trimEndAborted(charType) {
747
const
rx =
new
RegExp((charType ||
'\\s'
) +
'+$'
);
Callers
2
trimLines
Method · 0.95
isEmpty
Method · 0.45
Calls
2
trimStart
Method · 0.95
trimEnd
Method · 0.45
Tested by
no test coverage detected