mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-14 08:58:14 -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']
|
color = oldProfile['color']
|
||||||
profile.color = colorTranslations[color] ? colorTranslations['']
|
profile.color = colorTranslations[color] ? colorTranslations['']
|
||||||
name = oldProfile['name'] ? oldProfile['id']
|
name = oldProfile['name'] ? oldProfile['id']
|
||||||
|
name = name.trim()
|
||||||
if name[0] == '_'
|
if name[0] == '_'
|
||||||
name = 'p' + name
|
name = 'p' + name
|
||||||
profile.name = name
|
profile.name = name
|
||||||
|
Loading…
Reference in New Issue
Block a user