diff --git a/shared/embeds/Gist.js b/shared/embeds/Gist.js index 405466f54..1e2325edf 100644 --- a/shared/embeds/Gist.js +++ b/shared/embeds/Gist.js @@ -2,7 +2,7 @@ import * as React from "react"; const URL_REGEX = new RegExp( - "^https://gist.github.com/([a-z\\d](?:[a-z\\d]|-(?=[a-z\\d])){0,38})/(.*)$" + "^https://gist.github.com/([a-zA-Z\\d](?:[a-zA-Z\\d]|-(?=[a-zA-Z\\d])){0,38})/(.*)$" ); type Props = {| diff --git a/shared/embeds/Gist.test.js b/shared/embeds/Gist.test.js index f625c8492..630451142 100644 --- a/shared/embeds/Gist.test.js +++ b/shared/embeds/Gist.test.js @@ -15,6 +15,12 @@ describe("Gist", () => { match ) ).toBeTruthy(); + + expect( + "https://gist.github.com/ShubhanjanMedhi-dev/900c9c14093611898a4a085938bb90d9".match( + match + ) + ).toBeTruthy(); }); test("to not be enabled elsewhere", () => {