Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed May 20, 2020
1 parent d49b56b commit 10ef37d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Expand Up @@ -6,8 +6,6 @@ export type JSONValue = true | false | null | string | Number | JSONObject | JSO
const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/

const STR_MAP = new Map()

function jsonParseTransform (key: string, value: any): any {
if (key === '__proto__' || key === 'prototype' || key === 'constructor') {
return
Expand Down

0 comments on commit 10ef37d

Please sign in to comment.