From d7b2874afd87efbb5a0ef8e087ca47db944f4390 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 21 Sep 2022 11:24:25 +0200 Subject: [PATCH] Fix(#1391): fix edge case URLs in code samples (#2078) --- website/clean-generated-docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/clean-generated-docs.js b/website/clean-generated-docs.js index 441bcf830b..116a15ae60 100644 --- a/website/clean-generated-docs.js +++ b/website/clean-generated-docs.js @@ -22,9 +22,9 @@ const options = { from: [ /\/ushosted/g, /"https:\/\/us.app.unleash-hosted.com(\/ushosted)?"/g, - '"path":["ushosted","api"', + '"path":["ushosted",', ], - to: ['', '""', '"path":["api"'], + to: ['', '""', '"path":['], }; replace(options);