index.js 203 B

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