Skip to content

Commit

Permalink
Update generateMarkdown.sh
Browse files Browse the repository at this point in the history
Fixed correct escaping position
  • Loading branch information
rkolupaev authored and alex-shamshurin committed Jun 21, 2017
1 parent 2e58d05 commit cd2a7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generateMarkdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function generatePropType(type) {
if (Array.isArray(type.value)) {
values = '(' +
type.value.map(function(typeValue) {
return (typeValue.name || typeValue.value).replace(/\|/g, '\\|');
}).join('|') +
return typeValue.name || typeValue.value;
}).join('\\|') +
')';
} else {
values = type.value;
Expand Down

0 comments on commit cd2a7f3

Please sign in to comment.