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:
Matthias Schiffer 2015-02-17 20:37:56 +01:00
parent bd024a42c9
commit 230eebdf1c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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