diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 15:36:02 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-24 15:36:10 -0700 |
| commit | 5758626bf7ac1789a2ef871b7683b23084c3dbb7 (patch) | |
| tree | 1302679fec0c75e2bf083e14bf0161ddd72bc4ef | |
| parent | ba76a35e84d384673f4633d59003df91ce6a2d79 (diff) | |
Cleaned up string quotes
| -rw-r--r-- | nomsu.lua | 2 | ||||
| -rwxr-xr-x | nomsu.moon | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -88,7 +88,7 @@ all_files = function(path) return iterate_single, path end path = path:gsub("\\", "\\\\"):gsub("`", ""):gsub('"', '\\"'):gsub("$", "") - return io.popen("find -L \"" .. path .. "\" -type f -name \"*.nom\""):lines() + return io.popen('find -L "' .. path .. '" -type f -name "*.nom"'):lines() end local line_counter = re.compile([[ lines <- {| line (%nl line)* |} line <- {} (!%nl .)* @@ -77,7 +77,7 @@ all_files = (path)-> return iterate_single, path -- TODO: improve sanitization path = path\gsub("\\","\\\\")\gsub("`","")\gsub('"','\\"')\gsub("$","") - return io.popen("find -L \""..path.."\" -type f -name \"*.nom\"")\lines! + return io.popen('find -L "'..path..'" -type f -name "*.nom"')\lines! line_counter = re.compile([[ lines <- {| line (%nl line)* |} |
