MCPcopy
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
113function trim(str) {
114 if (!str) {
115 return str;
116 }
117
118 str = str + '';
119
120 return str.replace(/(^\s*)|(\s*$)/g, '');
121}
122
123exports.trim = trim;
124

Callers 6

ProjectCard.jsFile · 0.90
handleInitListFunction · 0.90
ProjectMessage.jsFile · 0.90
GroupSetting.jsFile · 0.90
commons.test.jsFile · 0.90
common.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected