Skip to content

Commit

Permalink
fix: navigation title unescape upgrade script tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 14, 2020
1 parent 7456a0e commit 80a2a70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/upgrades/1.14.0/unescape_navigation_titles.js
Expand Up @@ -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));
Expand Down

0 comments on commit 80a2a70

Please sign in to comment.