Skip to content

Commit

Permalink
handled different syntax of stack output
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalbhardwaj committed Jul 25, 2024
1 parent b672f7c commit f3dcd99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playground/src/pages/InstructionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ interface AssemblerInstruction {
}

const parseStringArray = (input: string): string[] => {
if (input.includes('\n')) {
return input.split('\n').map((part) => part.trim());
}

return input
.slice(1, -1)
.split(', ')
Expand Down

0 comments on commit f3dcd99

Please sign in to comment.