Skip to content

Commit

Permalink
fix: get the boolean the right way round
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 2, 2019
1 parent ee864be commit 132b6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block-parsers.ts
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ export const _headingToPropertyBlock = (heading: HeadingContent): PropertyDocume
return {
name: propertyString,
description: parsedDescription,
required: /\(optional\)/i.test(parsedDescription),
required: !/\(optional\)/i.test(parsedDescription),
...parsedReturnType!,
};
};

0 comments on commit 132b6f3

Please sign in to comment.