From c34c2ffed5fa921eceb609dbb2d409978a70cc73 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 11 Aug 2022 18:09:14 -0700 Subject: [PATCH] Add back comment --- web/components/editor/embed-modal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/editor/embed-modal.tsx b/web/components/editor/embed-modal.tsx index bb826e9e..05694090 100644 --- a/web/components/editor/embed-modal.tsx +++ b/web/components/editor/embed-modal.tsx @@ -25,6 +25,8 @@ const embedPatterns: EmbedPattern[] = [ }, { regex: /^https?:\/\/twitter\.com\/.*\/status\/(\d+)/, + // Hack: append a leading 't', to prevent tweetId from being interpreted as a number. + // If it's a number, there may be numeric precision issues. rewrite: (id) => ``, }, {