eslintwork/node_modules/astral-regex/index.js
Martin Donnelly 9cbf1eea5b init
2021-06-24 09:26:17 +01:00

7 lines
203 B
JavaScript

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