code: function formatDescription(str, formattingOptions) {
    var end = '.', endRe = new RegExp('[\\.\\!\\?]{1}[\\)\\]"\']*?$');
  
    // Apply a fallback in case we're trying to format a null or undefined.
    if (!str) {
      str = 'N/A';
    }
  
    // Add a period in case no valid end-of-sentence marker is found.
    if (formattingOptions.addPeriod) {
      if (endRe.test(str) === false) {
        str = str + end;
      }
    }
  
    return str;
  }
docs: Returns a formatted version of a description string. Chiefly, it
  ensures that each line ends with a valid end-of-sentence marker,
  mostly a period.
  
  @param {String} str The description string to format and return
  @param {Object} formattingOptions Formatting options object
  @returns {String} The formatted string