Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/rn-tester/js/RNTesterAppShared.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const RNTesterApp = ({
// * rntester://example/<moduleKey>
// * rntester://example/<moduleKey>/<exampleKey>
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) {
Expand All @@ -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 = [
Expand Down