diff options
Diffstat (limited to 'otfl-data-con.lua')
-rw-r--r-- | otfl-data-con.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-data-con.lua b/otfl-data-con.lua index ec146f0..02ee9ee 100644 --- a/otfl-data-con.lua +++ b/otfl-data-con.lua @@ -58,7 +58,7 @@ function containers.define(category, subcategory, version, enabled) enabled = enabled, version = version or 1.000, trace = false, - path = caches and caches.setpath(category,subcategory), + path = caches and caches.setpath and caches.setpath(category,subcategory), } c[subcategory] = s end @@ -116,3 +116,7 @@ end function containers.content(container,name) return container.storage[name] end + +function containers.cleanname(name) + return (gsub(lower(name),"[^%w%d]+","-")) +end |