diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-12-04 14:57:18 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-12-04 14:57:18 +0000 |
commit | c33ba890c7a902e396cf8014c0574dcd3b279fe7 (patch) | |
tree | 2dc403d421a5ea9c113011d92ca909f698f66a71 | |
parent | 6cd2d2eb83ef72a12a8d3ea08f618fedc779aa43 (diff) | |
download | acf-lib-c33ba890c7a902e396cf8014c0574dcd3b279fe7.tar.bz2 acf-lib-c33ba890c7a902e396cf8014c0574dcd3b279fe7.tar.xz |
Escape endline in special characters
-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 |