aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-08 21:32:14 +0800
committerFabio Berger <me@fabioberger.com>2018-08-08 21:32:14 +0800
commitd49af66add3f59a5da48d3d2b364cfcfd18fe04a (patch)
treeca36623e98e8ab48e45dded8e6a197253e278d2f /packages/react-shared/src/utils
parent1a89905ab9602ccd81c5702bcc13246cd1f6960b (diff)
downloaddexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar.gz
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar.bz2
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar.lz
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar.xz
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.tar.zst
dexon-sol-tools-d49af66add3f59a5da48d3d2b364cfcfd18fe04a.zip
Add additional special-case acronym
Diffstat (limited to 'packages/react-shared/src/utils')
-rw-r--r--packages/react-shared/src/utils/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-shared/src/utils/utils.ts b/packages/react-shared/src/utils/utils.ts
index ce7effaff..0c0e7722c 100644
--- a/packages/react-shared/src/utils/utils.ts
+++ b/packages/react-shared/src/utils/utils.ts
@@ -46,7 +46,7 @@ export const utils = {
return char;
});
let finalText = charArray.join('');
- const exceptions = { 'EIP ': 'E I P', 'ZRX ': 'Z R X', 'ERC ': 'E R C' };
+ const exceptions = { 'EIP ': 'E I P', 'ZRX ': 'Z R X', 'ERC ': 'E R C', RPC: 'R P C' };
_.each(exceptions, (spaced, normal) => {
if (_.includes(finalText, spaced)) {
finalText = finalText.replace(spaced, normal);