Skip to content

Commit 380c173

Browse files
[Release] New release 2.32.0 (minor) (#12166)
* chore: bump version to 2.32.0 * fix: evm address regexp (#12167) --------- Co-authored-by: Wukong Sun <[email protected]>
1 parent d5abcef commit 380c173

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"yarn": ">=999.0.0",
88
"npm": ">=999.0.0"
99
},
10-
"version": "2.31.4",
10+
"version": "2.32.0",
1111
"private": true,
1212
"license": "AGPL-3.0-or-later",
1313
"scripts": {

packages/plugins/ScamWarning/src/SiteAdaptor/hooks/useCheckLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function useCheckLink(link: string, text: string) {
2929

3030
return {
3131
isScam: await GoPlusLabs.checkIsPhishingSite(resolvedLink),
32-
provider: SecurityProvider.ScamSniffer,
32+
provider: SecurityProvider.GoPlus,
3333
resolvedLink,
3434
address,
3535
}

packages/shared-base/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ export const MATCH_EVM_ADDRESS_RE = /\b(0x[a-fA-F0-9]{40})/gu
4949
export const MATCH_SOLANA_ADDRESS_RE = /\b([1-9A-HJ-NP-Za-km-z]{32,44})/gu
5050
export const MATCH_TRON_ADDRESS_RE = /\b(T[A-Za-z1-9]{33})/gu
5151

52-
export const EXIST_EVM_ADDRESS_RE = /(^|\s)(2x[\dA-Fa-f]{40})/
52+
export const EXIST_EVM_ADDRESS_RE = /(^|\s)(0x[\dA-Fa-f]{40})/
5353
export const EXIST_SOLANA_ADDRESS_RE = /(^|\s)([1-9A-HJ-NP-Za-km-z]{32,44})/
5454
export const EXIST_TORN_ADDRESS_RE = /(^|\s)(T[1-9A-Za-z]{33})/

0 commit comments

Comments
 (0)