Skip to content

Commit

Permalink
fix: section name is adding to description
Browse files Browse the repository at this point in the history
- Delete section name from description

Closes #128
  • Loading branch information
ifedchankau committed Aug 15, 2018
1 parent a49e6e0 commit b8ef2c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const splitOptionsSection = (section) => {
string = string.trim();
if (string.indexOf('-') === 0) {
result.push(splitStringWithArguments(string));
} else if (result.length > 0) {
} else if (result.length > 0 &&
string.match(/([\S]|[\S]+[\s][\S]+):$/) === null) {
result[result.length - 1].description += string + ' ';
}
});
Expand Down

0 comments on commit b8ef2c8

Please sign in to comment.