From 78ada293e88da3b3f389687e8a049aaf4d5c6adc Mon Sep 17 00:00:00 2001 From: Miles Watkins Date: Mon, 27 Nov 2023 20:41:52 -0500 Subject: [PATCH] Fix regex parsing issue --- .gitignore | 3 +++ package-lock.json | 15 ++++++++------- src/utils.js | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 232c273..4aa8c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ build # Data availability.json + +# Secrets +.env* diff --git a/package-lock.json b/package-lock.json index 2f410dc..f471a1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5710,13 +5710,6 @@ "tslib": "^2.0.3" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=10" - } - }, "node_modules/dotenv-expand": { "version": "5.1.0", "license": "BSD-2-Clause" @@ -11888,6 +11881,14 @@ } } }, + "node_modules/react-scripts/node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "engines": { + "node": ">=10" + } + }, "node_modules/react-scripts/node_modules/fs-extra": { "version": "10.1.0", "license": "MIT", diff --git a/src/utils.js b/src/utils.js index e738c63..d91baf5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -16,7 +16,7 @@ const formatFacilityName = (name) => { .replace(/ RENTAL$/i, "") // Remove the parentheticals .replace(/ \(.+\)$/, "") - .replace(/MTN(?=[\. ])/, "MOUNTAIN") + .replace(/MTN/, "MOUNTAIN") .replace(/MT\./, "MOUNT") // There are a few remaining periods that don't make sense .replace(". ", " ");