smalos / nubuilder_dev

Prefer adding u flag in regular expressions JS-0117
Anti-pattern
Minor
2 occurrences in this check
Use the 'u' flag with regular expressions
  72}
  73
  74String.prototype.fixNbsp = function () {
  75  return this.replace(/\xA0/g, ' ')  76}
  77
  78String.prototype.capitalise = function () {
Use the 'u' flag with regular expressions
1298}
1299
1300function nuAddSlashes (s) {
1301  return String(s).replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0')1302}
1303
1304function nuOpenTab (i) {