From 2c499ad06c5d72a5f226fcb31f600b9f4d54a8d3 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 8 Sep 2024 22:09:56 +0200 Subject: [PATCH] Update ClientConfig.ts Updating map regexp matchers to match only word starts --- src/common/config/public/ClientConfig.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index d5da32b0..58c208da 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -573,31 +573,31 @@ export class ClientMapConfig { )]), new MapPathGroupConfig('Sport', [new MapPathGroupThemeConfig( - ['run'], + ['(\b|_|-)run'], new PathThemeConfig('var(--bs-primary)', '', new SVGIconConfig('0 0 417 512', '') ) ), new MapPathGroupThemeConfig( - ['walk'], + ['(\b|_|-)walk'], new PathThemeConfig('var(--bs-primary)', '', new SVGIconConfig('0 0 320 512', '') ) ), new MapPathGroupThemeConfig( - ['hike', 'hiking'], + ['(\b|_|-)hike', '(\b|_|-)hiking'], new PathThemeConfig('var(--bs-primary)', '', new SVGIconConfig('0 0 384 512', '') ) ), new MapPathGroupThemeConfig( - ['bike', 'biking', 'cycling'], + ['(\b|_|-)bike', '(\b|_|-)biking', '(\b|_|-)cycling'], new PathThemeConfig('var(--bs-primary)', '', new SVGIconConfig('0 0 640 512', '') ) ), new MapPathGroupThemeConfig( - ['skiing', 'ski'], + ['(\b|_|-)skiing', '(\b|_|-)ski'], new PathThemeConfig('var(--bs-primary)', '', new SVGIconConfig('0 0 512 512', '')