We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1772c3f commit 9a747e3Copy full SHA for 9a747e3
site/src/routes/repl/[id]/index.svelte
@@ -57,7 +57,10 @@
57
is_relaxed_gist = data.relaxed;
58
59
const components = data.files.map(file => {
60
- let [name, type] = file.name.split('.');
+ const dot = file.name.lastIndexOf(".");
61
+ let name = file.name.slice(0, dot);
62
+ let type = file.name.slice(dot + 1);
63
+
64
if (type === 'html') type = 'svelte'; // TODO do this on the server
65
return { name, type, source: file.source };
66
});
0 commit comments