fix: Correct menu item text extraction from name to description and introduce a language splitting utility.
This commit is contained in:
@@ -1316,7 +1316,7 @@
|
||||
allWeeks.forEach(w => {
|
||||
(w.days || []).forEach(d => {
|
||||
(d.items || []).forEach(item => {
|
||||
let text = (item.name || '').replace(/\s+/g, ' ').trim();
|
||||
let text = (item.description || '').replace(/\s+/g, ' ').trim();
|
||||
if (text && text.includes(' / ')) {
|
||||
uniqueMenus.add(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user