Found control characters in regular expressions JS-0004
Bug risk
Major
4 months ago3 years old
Unexpected control character(s) in regular expression: \x00
 218      const b_copy = b.copy(b.offset, b.offset + 7)
 219      const symbol = Buffer.from(b_copy.toBinary(), 'binary')
 220        .toString()
 221        .replace(/\ /g, '') 222      if (symbol == 'BLURT' || symbol == 'TESTS') {
 223        nai_string = '@@000000021'
 224      } else if (symbol == 'VESTS') nai_string = '@@000000037'
Unexpected control character(s) in regular expression: \x00
 105      const b_copy = b.copy(b.offset, b.offset + 7)
 106      symbol = Buffer.from(b_copy.toBinary(), 'binary')
 107        .toString()
 108        .replace(/\ /g, '') 109      b.skip(7)
 110      // "1.000 BLURT" always written with full precision
 111      amount_string = fromImpliedDecimal(amount, precision)
Unexpected control character(s) in regular expression: \x1f, \x1f
  359    const Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/
  360    const ee = /[+~]/
  361    const te = new RegExp('\\\\([\\da-f]{1,6}' + M + '?|(' + M + ')|.)', 'ig')
  362    const re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g  363    const ie = function (e, t) {
  364      return t
  365        ? e === '\0'