diff --git a/website/clean-generated-docs.js b/website/clean-generated-docs.js index 484e5bc07255..116a15ae605c 100644 --- a/website/clean-generated-docs.js +++ b/website/clean-generated-docs.js @@ -17,27 +17,14 @@ // save us loooots of questions. const replace = require('replace-in-file'); -const escapeCharacters = (input) => { - unquotedInput = - input.charAt(0) === '"' ? input.substring(1, input.length - 1) : input; - const fixed = unquotedInput.replace(/(?"', - '"path":[', - (_, key, description) => `${key}: ${escapeCharacters(description)}`, ], + to: ['', '""', '"path":['], }; replace(options);