From c943c829f079271879a229875bbc8e80ec4d9f84 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 1 Jan 2018 16:44:14 -0500 Subject: [PATCH] Fixes #15 --- mar/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mar/editor.js b/mar/editor.js index f88dcd5..9c5b0c9 100644 --- a/mar/editor.js +++ b/mar/editor.js @@ -172,7 +172,7 @@ function getOperandType(text, result) { //Check IMM if (!isNaN(Number(text)) && Number(text) === Math.floor(Number(text)) && text.indexOf("o") === -1 - && text.indexOf("e") === -1) { + && text.indexOf("0e") !== 0) { return OPERAND_IMM; }