diff options
-rw-r--r-- | format.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ end -- Escape shell special characters function escapespecialcharacters ( str ) - return (string.gsub(str or "", "[~`#%$&%*%(%)\\|%[%]{};\'\"<>/]", "\\%1")) + return (string.gsub(str or "", "[~`#%$&%*%(%)\\|%[%]{};\'\"<>/\n\r]", "\\%1")) end -- search and remove all blank and commented lines from a string or table of lines |