We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7af20 commit c4eb243Copy full SHA for c4eb243
src/WebViewShared.tsx
@@ -20,7 +20,7 @@ const defaultDeeplinkWhitelist = ['https:'] as const;
20
const defaultDeeplinkBlocklist = [`http:`, `file:`, `javascript:`] as const;
21
22
const stringWhitelistToRegex = (originWhitelist: string): RegExp =>
23
- new RegExp(escapeStringRegexp(originWhitelist).replace(/^(https?:\/\/|mailto:).*/, '^$1.*$'));
+ new RegExp(`^${escapeStringRegexp(originWhitelist).replace(/\\\*/g, '.*')}$`)
24
25
const matchWithRegexList = (
26
compiledRegexList: readonly RegExp[],
0 commit comments