We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f19842 commit 1d232bbCopy full SHA for 1d232bb
packages/errors/src/message-formatter.ts
@@ -63,15 +63,14 @@ export function getHumanReadableErrorMessage<TErrorCode extends SolanaErrorCode>
63
if (char === '\\') {
64
nextState = { [START_INDEX]: ii, [TYPE]: StateType.EscapeSequence };
65
} else if (char === '$') {
66
- commitStateUpTo(ii);
67
nextState = { [START_INDEX]: ii, [TYPE]: StateType.Variable };
68
} else if (!char.match(/\w/)) {
69
nextState = { [START_INDEX]: ii, [TYPE]: StateType.Text };
70
}
71
break;
72
73
if (nextState) {
74
- if (state[TYPE] !== nextState[TYPE]) {
+ if (state !== nextState) {
75
commitStateUpTo(ii);
76
77
state = nextState;
0 commit comments