linwenling
2023-07-24 181f5b75a26aa720557b063cfb8b9bf1f34e3ece
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');