smalos / nubuilder_dev

Found control characters in regular expressions JS-0004
Bug risk
Major
2 occurrences in this check
Unexpected control character(s) in regular expression: \x00.
1305}
1306
1307function nuAddSlashes (s) {
1308  return String(s).replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0')1309}
1310
1311function nuOpenTab (i) {
Unexpected control character(s) in regular expression: \x1f, \x1f.
 679
 680  // CSS string/identifier serialization
 681  // https://drafts.csswg.org/cssom/#common-serializing-idioms
 682  const rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g 683  const fcssescape = function (ch, asCodePoint) {
 684    if (asCodePoint) {
 685      // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER