|
|
@ -310,7 +310,7 @@ var configuratorApp = (function(){
|
|
|
|
var slash = val ? '' : '//';
|
|
|
|
var slash = val ? '' : '//';
|
|
|
|
var newline = inf.line
|
|
|
|
var newline = inf.line
|
|
|
|
.replace(/^([ \t]*)(\/\/)([ \t]*)/, '$1$3') // remove slashes
|
|
|
|
.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);
|
|
|
|
txt = txt.replace(inf.line, newline);
|
|
|
|
inf.line = newline;
|
|
|
|
inf.line = newline;
|
|
|
|