API/api.medcify.app/node_modules/validator/es/lib/isSurrogatePair.js

6 lines
205 B
JavaScript
Raw Normal View History

2022-09-26 06:11: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);
}