From 644a15b782cc5eb675a3dee66bfe992126a54914 Mon Sep 17 00:00:00 2001 From: muerwre Date: Fri, 29 Mar 2019 17:26:37 +0700 Subject: [PATCH] did nothing --- src/components/maps/RouteRowView.tsx | 4 +++- src/utils/format.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/maps/RouteRowView.tsx b/src/components/maps/RouteRowView.tsx index a9c943f..d69ef7b 100644 --- a/src/components/maps/RouteRowView.tsx +++ b/src/components/maps/RouteRowView.tsx @@ -51,7 +51,9 @@ export const RouteRowView = ({ (tab === 'all' || tab === 'starred') && is_starred && !is_admin && } - {(title || _id)} + + {(title || _id)} +
diff --git a/src/utils/format.ts b/src/utils/format.ts index 5710576..30d1868 100644 --- a/src/utils/format.ts +++ b/src/utils/format.ts @@ -15,3 +15,5 @@ export const toTranslit = (string: string): string => ( ); export const parseDesc = (text: string): string => text.replace(/(\n{2,})/ig, "\n\n"); + +// export const colorizeTitle = (text: string): string => text.replace(/(\[[^\]^]+\])/, ``)