diff --git a/src/stringify.ts b/src/stringify.ts index 68694421..b60b8cfe 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -11,7 +11,9 @@ const actionTypes: { [key: string]: string } = { }; const charsToEscape = new Set([ - ...Object.values(actionTypes).filter(Boolean), + ...Object.keys(actionTypes) + .map((typeKey) => actionTypes[typeKey]) + .filter(Boolean), ":", "[", "]",