OCA_Backend/api/node_modules/validator/es/lib/isSurrogatePair.js

6 lines
205 B
JavaScript
Raw Normal View History

2022-01-22 13:36:44 +00:00
import assertString from './util/assertString';
var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
export default function isSurrogatePair(str) {
assertString(str);
return surrogatePair.test(str);
}