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