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:08:52 +0000 |
commit | 48c509c69a44006a69ee6a834a6a7129de3aede1 (patch) | |
tree | f911646820617d8375ad7d7fbd41000af665edf9 | |
parent | 273c1f75a88afa6ad22d6337263ece47192d67a1 (diff) | |
download | acf-lib-48c509c69a44006a69ee6a834a6a7129de3aede1.tar.bz2 acf-lib-48c509c69a44006a69ee6a834a6a7129de3aede1.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 |