CoastalCommitsPastes/server/node_modules/validator/es/lib/isSurrogatePair.js
2022-03-06 16:46:59 -08:00

6 lines
No EOL
205 B
JavaScript

import assertString from './util/assertString';
var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
export default function isSurrogatePair(str) {
assertString(str);
return surrogatePair.test(str);
}