utils/node_modules/validator/es/lib/isSurrogatePair.js

6 lines
205 B
JavaScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
import assertString from './util/assertString';
var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
export default function isSurrogatePair(str) {
assertString(str);
return surrogatePair.test(str);
}