Skip to content

Commit

Permalink
fix: follow up reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Jan 7, 2025
1 parent 44db283 commit a11188b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { parseURL } from '@masknet/shared-base'
import { regexMatch } from '../../../utils/regexMatch.js'

// more about twitter photo url formatting:
Expand All @@ -23,7 +24,8 @@ export function parseId(t: string) {
}

export function removeUrlParam(url: string, param: string) {
const parsed = new URL(url)
const parsed = parseURL(url)
if (!parsed) return url
parsed.searchParams.delete(param)
return parsed.href
}

0 comments on commit a11188b

Please sign in to comment.