From 91fde7fbebcb8094bb86fa3fc8102045e9a81ea1 Mon Sep 17 00:00:00 2001
From: build-token <build-token>
Date: Tue, 24 Jan 2023 16:13:45 +0000
Subject: [PATCH] publish: fix(insee): cleaner regexp

generated from commit e38b80221cef17f7229a29ce16f3fd3356c802d1
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index aaa1d41..2900961 100644
--- a/index.js
+++ b/index.js
@@ -247531,7 +247531,7 @@ async function getInseeCode(postalCode, city) {
 function sanitizeCity(city) {
   return city
     .toLowerCase()
-    .replace(/st/g, 'saint')
+    .replace(/\bst\b/i, 'saint')
     .replace(/[âêîôûäëïü-\sʼ'éèç]/g, match => REPLACE_CHARS[match])
     .trim()
 }
-- 
GitLab