Skip to content

Commit 3b2bfab

Browse files
committed
devop: add more unicode detections
1 parent 6b06a3f commit 3b2bfab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/extension/src/libs/utils/unicode-detection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const unicodeLiteral = (str: string) => {
1616
return result;
1717
};
1818
export const getRTLOLTLOSafeString = (str: string): string => {
19-
const isrtloltlo = /[\u202E\u200F]/.test(str) || /[\u202D\u200E]/.test(str);
20-
if (isrtloltlo) return unicodeLiteral(str);
19+
const dangerous = /[\u202A-\u202E\u2066-\u2069\u200E\u200F\u061C]/.test(str);
20+
if (dangerous) return unicodeLiteral(str);
2121
return str;
2222
};

packages/extension/src/providers/ethereum/networks/maticzk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const maticOptions: EvmNetworkOptions = {
1414
blockExplorerAddr: 'https://zkevm.polygonscan.com/address/[[address]]',
1515
chainID: '0x44d',
1616
isTestNetwork: false,
17-
currencyName: 'POL',
18-
currencyNameLong: 'Polygon POL',
17+
currencyName: 'ETH',
18+
currencyNameLong: 'Ethereum',
1919
node: 'wss://nodes.mewapi.io/ws/maticzk',
2020
icon,
21-
coingeckoID: 'polygon-ecosystem-token',
21+
coingeckoID: 'ethereum',
2222
coingeckoPlatform: CoingeckoPlatform.MaticZK,
2323
NFTHandler: shNFTHandler,
2424
assetsInfoHandler,

0 commit comments

Comments
 (0)