index.js
1 'use strict'; 2 const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]'; 3 4 const astralRegex = options => options && options.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g'); 5 6 module.exports = astralRegex;
1 'use strict'; 2 const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]'; 3 4 const astralRegex = options => options && options.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g'); 5 6 module.exports = astralRegex;