Skip to content

Commit

Permalink
Fix regex parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mileswwatkins committed Nov 28, 2023
1 parent c0457e9 commit 78ada29
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ build

# Data
availability.json

# Secrets
.env*
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(". ", " ");
Expand Down

0 comments on commit 78ada29

Please sign in to comment.