Skip to content

Commit

Permalink
Fix bug in regexp that meant "amenity"~"pub|bar|biergarten"] would …
Browse files Browse the repository at this point in the history
…return public_bookcase 📚
  • Loading branch information
01100100 committed Jul 22, 2024
1 parent 0eb3a6c commit 8240b5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ let boundingBox: [number, number, number, number] | null = null;
let selectedCategory: string = "drinks";

export const categories: { [key: string]: { tag: string; emoji: string } } = {
"drinks": { "tag": '"amenity"~"pub|bar|biergarten"', "emoji": "🍺" },
"cafe": { "tag": '"amenity"~"cafe"', "emoji": "☕" },
"food": { "tag": '"amenity"~"restaurant|fast_food|food_court|ice_cream"', "emoji": "🍴" },
"park": { "tag": '"leisure"~"park|garden"', "emoji": "🌳" },
"drinks": { "tag": 'amenity~"^(pub|bar|biergarten)$"', "emoji": "🍺" },
"cafe": { "tag": 'amenity~"^(cafe)$"', "emoji": "☕" },
"food": { "tag": 'amenity~"^(restaurant|fast_food|food_court|ice_cream)$"', "emoji": "🍴" },
"park": { "tag": 'leisure~"^(park|garden)$"', "emoji": "🌳" },

}

Expand Down

0 comments on commit 8240b5c

Please sign in to comment.