From 03a098a1810a3cf7b870f6c14ab03b0b59d18c59 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 30 Jun 2019 01:49:07 -0400 Subject: [PATCH] Fix issue displaying preset name for suggestions with a '/' in name (closes #6594) --- build_data.js | 2 +- data/presets/presets.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_data.js b/build_data.js index 98f5ad6c5..3008b122a 100644 --- a/build_data.js +++ b/build_data.js @@ -260,7 +260,7 @@ function suggestionsToPresets(presets) { return; } - let suggestionID = presetID + '/' + name; + let suggestionID = presetID + '/' + name.replace('/', ''); let tags = { 'brand:wikidata': qid }; for (let k in preset.tags) { diff --git a/data/presets/presets.json b/data/presets/presets.json index 96419636b..ad0b13874 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -2980,7 +2980,7 @@ "office/estate_agent/Foncia": {"name": "Foncia", "icon": "temaki-real_estate_agency", "imageURL": "https://graph.facebook.com/Foncia/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q1435638", "office": "estate_agent"}, "addTags": {"brand": "Foncia", "brand:wikidata": "Q1435638", "brand:wikipedia": "fr:Foncia", "name": "Foncia", "office": "estate_agent"}, "countryCodes": ["fr"], "terms": [], "matchScore": 2, "suggestion": true}, "office/estate_agent/Guy Hoquet": {"name": "Guy Hoquet", "icon": "temaki-real_estate_agency", "imageURL": "https://graph.facebook.com/GuyHoquetImmobilier/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q25383970", "office": "estate_agent"}, "addTags": {"brand": "Guy Hoquet", "brand:wikidata": "Q25383970", "brand:wikipedia": "fr:Guy Hoquet l'immobilier", "name": "Guy Hoquet", "office": "estate_agent"}, "countryCodes": ["fr"], "terms": [], "matchScore": 2, "suggestion": true}, "office/estate_agent/Orpi": {"name": "Orpi", "icon": "temaki-real_estate_agency", "imageURL": "https://graph.facebook.com/OrpiFrance/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q3356080", "office": "estate_agent"}, "addTags": {"brand": "Orpi", "brand:wikidata": "Q3356080", "brand:wikipedia": "fr:Organisation régionale des professionnels de l'immobilier", "name": "Orpi", "office": "estate_agent"}, "countryCodes": ["fr"], "terms": [], "matchScore": 2, "suggestion": true}, - "office/estate_agent/RE/MAX": {"name": "RE/MAX", "icon": "temaki-real_estate_agency", "imageURL": "https://graph.facebook.com/remax/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q965845", "office": "estate_agent"}, "addTags": {"brand": "RE/MAX", "brand:wikidata": "Q965845", "brand:wikipedia": "en:RE/MAX", "name": "RE/MAX", "office": "estate_agent"}, "terms": [], "matchScore": 2, "suggestion": true}, + "office/estate_agent/REMAX": {"name": "RE/MAX", "icon": "temaki-real_estate_agency", "imageURL": "https://graph.facebook.com/remax/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q965845", "office": "estate_agent"}, "addTags": {"brand": "RE/MAX", "brand:wikidata": "Q965845", "brand:wikipedia": "en:RE/MAX", "name": "RE/MAX", "office": "estate_agent"}, "terms": [], "matchScore": 2, "suggestion": true}, "office/estate_agent/Royal LePage": {"name": "Royal LePage", "icon": "temaki-real_estate_agency", "imageURL": "https://pbs.twimg.com/profile_images/1143181179102859269/HvAK2iCT_bigger.png", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q7374385", "office": "estate_agent"}, "addTags": {"brand": "Royal LePage", "brand:wikidata": "Q7374385", "brand:wikipedia": "en:Royal LePage", "name": "Royal LePage", "office": "estate_agent"}, "countryCodes": ["ca"], "terms": [], "matchScore": 2, "suggestion": true}, "office/estate_agent/Square Habitat": {"name": "Square Habitat", "icon": "temaki-real_estate_agency", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q64027038", "office": "estate_agent"}, "addTags": {"brand": "Square Habitat", "brand:wikidata": "Q64027038", "brand:wikipedia": "fr:Square Habitat", "name": "Square Habitat", "office": "estate_agent"}, "countryCodes": ["fr"], "terms": [], "matchScore": 2, "suggestion": true}, "office/financial_advisor/Edward Jones": {"name": "Edward Jones", "icon": "maki-suitcase", "imageURL": "https://graph.facebook.com/edwardjones/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q5343830", "office": "financial_advisor"}, "addTags": {"alt_name": "Edward Jones Investments", "brand": "Edward Jones", "brand:wikidata": "Q5343830", "brand:wikipedia": "en:Edward Jones Investments", "name": "Edward Jones", "office": "financial_advisor"}, "countryCodes": ["ca", "us"], "terms": [], "matchScore": 2, "suggestion": true},