diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-12-04 14:57:18 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-12-04 15:28:33 +0000 |
commit | 310fbef3a042393b5fa49d83f17bc9404f7103ff (patch) | |
tree | 2bfcb2ddf5a60b7bbcb8b9fad2db8f9ee2cdebd7 | |
parent | dc153b86b19134d5335a51ddb329122a912fde03 (diff) | |
download | acf-lib-310fbef3a042393b5fa49d83f17bc9404f7103ff.tar.bz2 acf-lib-310fbef3a042393b5fa49d83f17bc9404f7103ff.tar.xz |
Escape endline in special characters
(cherry picked from commit c33ba890c7a902e396cf8014c0574dcd3b279fe7)
-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 |