From cd2a7f38c513f273973e16bf995069b03b2046c2 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 21 Jun 2017 16:09:03 +0200 Subject: [PATCH] Update generateMarkdown.sh Fixed correct escaping position --- scripts/generateMarkdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generateMarkdown.sh b/scripts/generateMarkdown.sh index 2bc8b5c2c..37f8e3cb0 100755 --- a/scripts/generateMarkdown.sh +++ b/scripts/generateMarkdown.sh @@ -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;