aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 52c8af0..f7fc601 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -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)* |}