function formatMethodName()

in sync-api-docs/methodFormatter.js [32:44]


function formatMethodName(param) {
  let tag = param.description;
  if (tag) {
    const isMatch = tag.match(/{@platform [a-z ,]*}/);
    if (isMatch) {
      const platform = isMatch[0].match(/ [a-z ,]*/);
      tag = tag.replace(/{@platform [a-z ,]*}/g, '');
      tag = formatMultiplePlatform(platform[0].split(','));
      return param.name + tag;
    }
  }
  return param.name;
}