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 <dan.abramov@gmail.com>
This commit is contained in:
parent
b10c96f28d
commit
1af59ca8a7
4 changed files with 24 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue