diff --git a/src/app/MemoryView.svelte b/src/app/MemoryView.svelte index 12ce445..912e90e 100644 --- a/src/app/MemoryView.svelte +++ b/src/app/MemoryView.svelte @@ -385,10 +385,10 @@ let actualVMCode = $ROM.VMCodes[actualVMCodeIndex].VMCode[ expectedVMCodeIndex - VMCodeStarts[actualVMCodeIndex] - ]; + ].trim(); let VMCodeCommentIndex = actualVMCode.indexOf("//"); if (VMCodeCommentIndex !== -1) { - actualVMCode = actualVMCode.slice(0, VMCodeCommentIndex).trim(); + actualVMCode = actualVMCode.slice(0, VMCodeCommentIndex); } if (expectedVMCode === actualVMCode) { break;