mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2025-07-03 16:20:26 +02:00
skinlist: Allow textures containing '-' characters
Fixes issue #110 Thanks to Bastrabun for the code suggestion
This commit is contained in:
@ -6,7 +6,7 @@ local dbgprint = false and print or function() end
|
||||
function skins.register_skin(path, filename)
|
||||
-- See "textures/readme.txt" for allowed formats
|
||||
|
||||
local prefix, sep, identifier, extension = filename:match("^(%a+)([_.])([%w_.]+)%.(%a+)$")
|
||||
local prefix, sep, identifier, extension = filename:match("^(%a+)([_.])([%w_.-]+)%.(%a+)$")
|
||||
--[[
|
||||
prefix: "character" or "player"
|
||||
sep: "." (new) or "_" (legacy)
|
||||
|
Reference in New Issue
Block a user