Skip to content

Commit e7c091a

Browse files
authored
allow branch playground urls (sveltejs#1125)
1 parent be182c9 commit e7c091a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/editor/src/lib/compile-worker/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let can_use_experimental_async = false;
1616

1717
async function init(v: string) {
1818
const svelte_url = v === 'local' ? '/svelte' : `https://unpkg.com/svelte@${v}`;
19-
const match = /^(?:pr|commit)-(.+)/.exec(v);
19+
const match = /^(?:pr|commit|branch)-(.+)/.exec(v);
2020

2121
let tarball: FileDescription[] | undefined;
2222
let version: string;

packages/repl/src/lib/workers/bundler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ let inited = Promise.withResolvers<typeof svelte>();
3434
let can_use_experimental_async = false;
3535

3636
async function init(v: string, packages_url: string) {
37-
const match = /^(pr|commit)-(.+)/.exec(v);
37+
const match = /^(pr|commit|branch)-(.+)/.exec(v);
3838

3939
let tarball: FileDescription[] | undefined;
4040

0 commit comments

Comments
 (0)