function formatMethodDescription()

in sync-api-docs/methodFormatter.js [46:57]


function formatMethodDescription(param) {
  let tag = param.description;
  const isMatch = tag.match(/{@platform [a-z ,]*}/);
  if (isMatch) {
    const platform = isMatch[0].match(/ [a-z ,]*/);

    // Replaces @platform strings with empty string
    // and appends type with formatted platform
    tag = tag.replace(/{@platform [a-z ,]*}/g, '');
  }
  return tag;
}