linwenling
2023-07-18 eae3832dcaf2186ba193fae961d9cc993067090f
1
2
3
4
'use strict';
const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]';
 
module.exports = opts => opts && opts.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');