Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(storage): change replaced character to U+202F (#28046)

Charisabb4cbb98297
diff --git a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
index f36aed48694..3d31787effa 100644
--- a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
+++ b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx
@@ -623,7 +623,10 @@ class StorageExplorerStore {
* [Joshen] Am limiting to just replacing nbsp with a blank space instead of
* all non-word characters per before
* */
- const formattedFileName = (unsanitizedFormattedFileName ?? 'unknown').replaceAll(/\xA0/g, ' ')
+ const formattedFileName = (unsanitizedFormattedFileName ?? 'unknown').replaceAll(
+ /\u{202F}/gu,
+ ' '
+ )
const formattedPathToFile =
pathToFile.length > 0 ? `${pathToFile}/${formattedFileName}` : (formattedFileName as string)