MCPcopy
hub / github.com/YMFE/yapi / _handleValue

Function _handleValue

common/power-string.js:106–115  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

104};
105
106const _handleValue = function(str) {
107 if (str[0] === str[str.length - 1] && (str[0] === '"' || str[0] === "'")) {
108 str = str.substr(1, str.length - 2);
109 }
110 return handleValue(
111 str
112 .replace(new RegExp(aUniqueVerticalStringNotFoundInData, 'g'), segmentSeparateChar)
113 .replace(new RegExp(aUniqueCommaStringNotFoundInData, 'g'), argsSeparateChar)
114 );
115};
116
117class PowerString {
118 constructor(str) {

Callers 1

handleSegmentFunction · 0.85

Calls 1

handleValueFunction · 0.70

Tested by

no test coverage detected