diff --git a/exec/fseditor.js b/exec/fseditor.js index 3afb54688a364a5ea00cc7f2adf401bfff34d712..93c5de764d925c80ce035954f84acd66593e21ed 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -948,7 +948,7 @@ function make_strings(soft,embed_colour) } if(soft || line[i].hardcr) { /* Trim whitespace from end */ - str=str.replace(/(\s*)$/,function (str, spaces, offset, s) { + str=str.replace(/([ \t]*)$/,function (str, spaces, offset, s) { if(!embed_colour) { /* Remove attributes for trimmed spaces */ attrs=attrs.substr(0,attrs.length-spaces.length);