2020-08-26 01:57:08 +02:00
|
|
|
'use strict';
|
|
|
|
const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]';
|
|
|
|
|
2021-02-26 04:58:33 +01:00
|
|
|
const astralRegex = options => options && options.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');
|
|
|
|
|
|
|
|
module.exports = astralRegex;
|