Skip to content

Commit

Permalink
Fix description parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed May 23, 2020
1 parent 67f1e09 commit 519bcfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/option_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ module.exports = ({github, context}) => {
if (descriptionArray.length == 1) {
params = descriptionArray[0].trim();
} else if (descriptionArray.length >= 2) {
params = descriptionArray[descriptionArray.length-1].trim();
description = descriptionArray.slice(0, -1).join("\n\n").trim();
params = descriptionArray.pop().trim();
description = descriptionArray.join("\n\n").trim();
}

let requestParams = {
Expand Down

0 comments on commit 519bcfb

Please sign in to comment.