fix: navigation title unescape upgrade script tweak

v1.18.x
Julian Lam 5 years ago
parent 7456a0e34e
commit 80a2a700ce

@ -14,9 +14,14 @@ module.exports = {
const navItem = JSON.parse(item.value);
if (navItem.hasOwnProperty('title')) {
navItem.title = translator.unescape(navItem.title);
navItem.title = navItem.title.replace(/\/g, '');
}
if (navItem.hasOwnProperty('text')) {
navItem.text = translator.unescape(navItem.text);
navItem.text = navItem.text.replace(/\/g, '');
}
if (navItem.hasOwnProperty('route')) {
navItem.route = navItem.route.replace('/', '/');
}
order.push(item.score);
items.push(JSON.stringify(navItem));

Loading…
Cancel
Save