From 7be4bfb05edf9916b372fce9ca1fc21f8aab6d72 Mon Sep 17 00:00:00 2001 From: stweedo <108593831+stweedo@users.noreply.github.com> Date: Mon, 29 May 2023 18:17:06 -0500 Subject: [PATCH] Update messagegui.app.js To include "toward" as well for better compatibility when splitting street name directions up --- apps/messagegui/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/messagegui/app.js b/apps/messagegui/app.js index 7ce568f82..ccc6acec6 100644 --- a/apps/messagegui/app.js +++ b/apps/messagegui/app.js @@ -84,8 +84,8 @@ function showMapMessage(msg) { if (msg.distance!==undefined) distance = require("locale").distance(msg.distance); if (msg.instr) { - if (msg.instr.includes("towards")) { - m = msg.instr.split("towards"); + if (msg.instr.includes("towards") || msg.instr.includes("toward")) { + m = msg.instr.split(/towards|toward/); target = m[0].trim(); street = m[1].trim(); }else