06521ed8391732a4a967075d2e0142d7d4fd3c6d.svn-base 160 Bytes
'use strict';
const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]';

module.exports = opts => opts && opts.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');