Skip to content

Commit

Permalink
Remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 7, 2020
1 parent 3877839 commit f5a4484
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ const ArrayType = 3;
const PromiseType = 4;
const ReadableStringType = 5;
const ReadableObjectType = 6;
const escapableCharRx = /[\u0000-\u001f\u0022\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
const escapableCharSubstitution = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'\"': '\\\"',
'\\': '\\\\'
};
// https://tc39.es/ecma262/#table-json-single-character-escapes
const escapableCharCodeSubstitution = { // JSON Single Character Escape Sequences
0x08: '\\b',
Expand Down Expand Up @@ -137,8 +127,6 @@ function normalizeSpace(space) {
}

module.exports = {
escapableCharRx,
escapableCharSubstitution,
escapableCharCodeSubstitution,
isLeadingSurrogate,
isTrailingSurrogate,
Expand Down

0 comments on commit f5a4484

Please sign in to comment.