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'
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)
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'
Control characters are special, invisible characters in the ASCII range 0-31. These characters are rarely used in JavaScript strings, so a regular expression containing these characters is most likely a mistake.
const pattern1 = /\x1f/;
const pattern2 = new RegExp("\x1f");
const pattern1 = /\x20/;
const pattern2 = new RegExp("\x20");