From 1af59ca8a7db308325f8964a131d544882cff6e8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Sat, 27 Apr 2024 05:25:28 +0100 Subject: Special-case bsky.app/download to open share sheet or copy to clipboard (#3710) * special-case bsky.app/download to share * Address feedback * Improve detection --------- Co-authored-by: Dan Abramov --- __tests__/lib/strings/url-helpers.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '__tests__/lib/strings/url-helpers.test.ts') diff --git a/__tests__/lib/strings/url-helpers.test.ts b/__tests__/lib/strings/url-helpers.test.ts index fb4b8f755..0b1b75028 100644 --- a/__tests__/lib/strings/url-helpers.test.ts +++ b/__tests__/lib/strings/url-helpers.test.ts @@ -1,10 +1,10 @@ -import {it, describe, expect} from '@jest/globals' +import {describe, expect, it} from '@jest/globals' import { - linkRequiresWarning, isPossiblyAUrl, - splitApexDomain, isTrustedUrl, + linkRequiresWarning, + splitApexDomain, } from '../../../src/lib/strings/url-helpers' describe('linkRequiresWarning', () => { @@ -170,6 +170,7 @@ describe('isTrustedUrl', () => { ['https://google.com', false], ['https://docs.google.com', false], ['https://google.com/#', false], + ['https://blueskywebxzendesk.com', false], ] it.each(cases)('given input uri %p, returns %p', (str, expected) => { -- cgit 1.4.1