assembler - Fix: Count lines with only whitespace as blank

This commit is contained in:
n loewen 2023-08-26 11:35:12 +01:00
parent 1ce6757838
commit 4bb394f039
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ const mnemonics2opcodes = {
function preparseSourceCode(source) {
let lines = source.split(/\n/); // returns an array of lines
const isLineBlank = (l) => { return l.length === 0 ? true : false };
const isLineBlank = (l) => { return stripWhitespaceFromEnds(l).length === 0 ? true : false };
const isLineComment = (l) => { return stripWhitespaceFromEnds(l).startsWith(';') };
/**