linwenling
2023-06-12 872968a2f26c884d174b08cba25edaaf7356b2d8
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');