assembler - Fix: Count lines with only whitespace as blank
This commit is contained in:
parent
1ce6757838
commit
4bb394f039
|
|
@ -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(';') };
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue