diff --git a/src/functions/dm_slice.ts b/src/functions/dm_slice.ts index ca755a7..d4b572a 100644 --- a/src/functions/dm_slice.ts +++ b/src/functions/dm_slice.ts @@ -11,14 +11,13 @@ export function dm_slice(raw: string): string[] { } const output: string[] = []; - - let slashed = slasher(raw); + let slashed = { front: null, end: raw }; while (true) { - output.push(slashed.front); if (slashed.end) { slashed = slasher(slashed.end); } else { return output; } + output.push(slashed.front); } }