Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/YMFE/yapi
/ trim
Function
trim
client/common.js:113–121 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
111
};
112
113
function
trim(str) {
114
if
(!str) {
115
return
str;
116
}
117
118
str = str +
''
;
119
120
return
str.replace(/(^\s*)|(\s*$)/g,
''
);
121
}
122
123
exports.trim = trim;
124
Callers
6
ProjectCard.js
File · 0.90
handleInitList
Function · 0.90
ProjectMessage.js
File · 0.90
GroupSetting.js
File · 0.90
commons.test.js
File · 0.90
common.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected