lua-platform-info: allow + in image names
Otherwise the UAP Outdoor+ can't be distinguished from the old UAP Outdoor.
This commit is contained in:
parent
bd024a42c9
commit
230eebdf1c
|
@ -33,5 +33,5 @@ end
|
|||
|
||||
-- The image name for sysupgrades
|
||||
function get_image_name()
|
||||
return (model:lower():gsub('[^%w%.]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||
end
|
||||
|
|
|
@ -33,5 +33,5 @@ end
|
|||
|
||||
-- The image name for sysupgrades
|
||||
function get_image_name()
|
||||
return (model:lower():gsub('[^%w%.]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue