mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 12:23:20 +00:00
added input = "" on SplitFirstPeriod because it was causing a crash on Studio Intro without media token present
This commit is contained in:
1 parent
1164c24f14
commit
3a1e4dbc31
1 file changed
+1
-1
@@ -9,7 +9,7 @@ interface Output {
|
||||
// break for filenames with periods before the extension. We want
|
||||
// this function to work for extensions such as ".scn.ron", which
|
||||
// is why we don't split at the last period.
|
||||
export function SplitFirstPeriod(input: string) : Output {
|
||||
export function SplitFirstPeriod(input: string = "") : Output {
|
||||
const i = input.indexOf(".");
|
||||
|
||||
if (i === -1) {
|
||||
|
||||
Reference in new issue
Block a user