From 56769ba4f84a1adf20b96c83469f34d3c0c5e5b3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 5 Feb 2015 19:39:42 -0800 Subject: [PATCH] Make comment/uncomment a little neater --- Marlin/configurator/js/configurator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/configurator/js/configurator.js b/Marlin/configurator/js/configurator.js index 30ca5ef3a..dd7de6f8e 100644 --- a/Marlin/configurator/js/configurator.js +++ b/Marlin/configurator/js/configurator.js @@ -307,10 +307,10 @@ var configuratorApp = (function(){ var $c = $config; // for now var txt = $c.text(); - var slash = val ? '' : '// '; + var slash = val ? '' : '//'; var newline = inf.line .replace(/^([ \t]*)(\/\/)([ \t]*)/, '$1$3') // remove slashes - .replace('#define', slash + '#define'); // add them back + .replace(inf.pre+inf.define, inf.pre+slash+inf.define); // add them back txt = txt.replace(inf.line, newline); inf.line = newline;