Skip to content

Commit

Permalink
Update src/popup/lib/utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Jul 15, 2024
1 parent c3841f7 commit e096ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ export function formatNumber(
}

export function toWalletAddressUrl(s: string): string {
return s.startsWith('$') ? s.replace(/^\$/, 'https://') : s
return s.startsWith('$') ? s.replace('$', 'https://') : s

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of '$'.
}

0 comments on commit e096ace

Please sign in to comment.