Add a Makefile
This commit is contained in:
@@ -40,8 +40,9 @@ rootname = (str) ->
|
||||
result = string.gsub str, "%..+", ""
|
||||
result
|
||||
|
||||
-- TODO use split function from common
|
||||
split = (str, delimiter="/") ->
|
||||
[capture for capture in string.gmatch str, "[^#{delimiter}]+"]
|
||||
[capture for capture in str\gmatch "[^#{delimiter}]+"]
|
||||
|
||||
last = (list) -> list[#list]
|
||||
join = (first, last, delimiter="/") -> table.concat { first, last }, delimiter
|
||||
|
||||
Reference in New Issue
Block a user