Browse Source

Strip slashes off the front of tooltips

Scott Lahteine 10 years ago
parent
commit
0116320d2c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/configurator/js/configurator.js

+ 2
- 2
Marlin/configurator/js/configurator.js View File

@@ -642,9 +642,9 @@ var configuratorApp = (function(){
642 642
           var r, s;
643 643
           findDef = new RegExp('(([ \\t]*(//|#)[^\n]+\n){1,4})([ \\t]*\n){0,1}' + info.line, 'g');
644 644
           if (r = findDef.exec(txt)) {
645
-            findDef = new RegExp('^[ \\t]*(//+[ \\t]*.*)[ \\t]*$', 'gm');
645
+            findDef = new RegExp('^[ \\t]*//+[ \\t]*(.*)[ \\t]*$', 'gm');
646 646
             while((s = findDef.exec(r[1])) !== null) {
647
-              if (s[1].match(/^\/\/[ \\t]*#define[ \\t]/) != null) {
647
+              if (s[1].match(/^#define[ \\t]/) != null) {
648 648
                 comment = '';
649 649
                 break;
650 650
               }

Loading…
Cancel
Save