From 5c7ef21a86f0c44f2828623c3831935e8888ef6c Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Fri, 11 Apr 2025 13:21:54 -0700 Subject: [PATCH] Use `rntester-legacy` URL scheme for legacy arch app Summary: Changelog: [internal] Reviewed By: shwanton Differential Revision: D72840476 --- packages/rn-tester/js/RNTesterAppShared.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rn-tester/js/RNTesterAppShared.js b/packages/rn-tester/js/RNTesterAppShared.js index 820f21d914e0..e053d3ce75d2 100644 --- a/packages/rn-tester/js/RNTesterAppShared.js +++ b/packages/rn-tester/js/RNTesterAppShared.js @@ -153,7 +153,7 @@ const RNTesterApp = ({ // * rntester://example/ // * rntester://example// const match = - /^rntester:\/\/example\/([a-zA-Z0-9_-]+)(?:\/([a-zA-Z0-9_-]+))?$/.exec( + /^rntester(-legacy)?:\/\/example\/([a-zA-Z0-9_-]+)(?:\/([a-zA-Z0-9_-]+))?$/.exec( url, ); if (!match) { @@ -163,8 +163,8 @@ const RNTesterApp = ({ return; } - const rawModuleKey = match[1]; - const exampleKey = match[2]; + const rawModuleKey = match[2]; + const exampleKey = match[3]; // For tooling compatibility, allow all these variants for each module key: const validModuleKeys = [