summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--format.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.lua b/format.lua
index 0076fdf..fc46e36 100644
--- a/format.lua
+++ b/format.lua
@@ -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