Skip to content

Commit e385ff6

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Use rntester-legacy URL scheme for legacy arch app (#50670)
Summary: Pull Request resolved: #50670 Changelog: [internal] Reviewed By: shwanton Differential Revision: D72840476 fbshipit-source-id: 8fca3241c54b70fc3267cfcf30211035eb595a25
1 parent 0479145 commit e385ff6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/rn-tester/js/RNTesterAppShared.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const RNTesterApp = ({
153153
// * rntester://example/<moduleKey>
154154
// * rntester://example/<moduleKey>/<exampleKey>
155155
const match =
156-
/^rntester:\/\/example\/([a-zA-Z0-9_-]+)(?:\/([a-zA-Z0-9_-]+))?$/.exec(
156+
/^rntester(-legacy)?:\/\/example\/([a-zA-Z0-9_-]+)(?:\/([a-zA-Z0-9_-]+))?$/.exec(
157157
url,
158158
);
159159
if (!match) {
@@ -163,8 +163,8 @@ const RNTesterApp = ({
163163
return;
164164
}
165165

166-
const rawModuleKey = match[1];
167-
const exampleKey = match[2];
166+
const rawModuleKey = match[2];
167+
const exampleKey = match[3];
168168

169169
// For tooling compatibility, allow all these variants for each module key:
170170
const validModuleKeys = [

0 commit comments

Comments
 (0)