mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-13 08:28:13 -04:00
Trim profile name when upgrading from SwitchySharp. Fix #778
This commit is contained in:
parent
f2ddaa0f4f
commit
f658ef9e6c
@ -107,6 +107,7 @@ module.exports = (oldOptions, i18n) ->
|
||||
color = oldProfile['color']
|
||||
profile.color = colorTranslations[color] ? colorTranslations['']
|
||||
name = oldProfile['name'] ? oldProfile['id']
|
||||
name = name.trim()
|
||||
if name[0] == '_'
|
||||
name = 'p' + name
|
||||
profile.name = name
|
||||
|
Loading…
Reference in New Issue
Block a user