kvin.js
/** Detect JavaScript strings which contain ill-formed UTF-16 sequences */
Detect JavaScript strings which contain ill-formed UTF-16 sequences
Detect JavaScript strings which contain ill - formed UTF - 16 sequences
function notUnicode(s) {
  if (/[\ud800-\udbff][^\udc00-\udfff]/.test(s)) {
    return true 
  }
  if (/[^\ud800-\udbff][\udc00-\udfff]/.test(s)) {
    return true 
  }
  return false
}
function notUnicode ( s ) { if ( / [\ud800-\udbff][^\udc00-\udfff] / . test ( s ) ) { return true } if ( / [^\ud800-\udbff][\udc00-\udfff] / . test ( s ) ) { return true } return false }
Detect JavaScript strings which contain ill-formed UTF-16 sequences
Detect JavaScript strings which contain ill - formed UTF - 16 sequences
/* high-surrogate without low-surrogate */ /* low-surrogate without high-surrogate */