API/api.medcify.app/node_modules/validator/es/lib/isSurrogatePair.js
2022-09-26 11:41:44 +05:30

6 lines
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);
}