Gitiles
Code Review
Sign In
gerrit.openfyde.cn
/
chromium.googlesource.com
/
devtools
/
devtools-frontend
/
7a19b64c0a03cb739ec195fde5c47d10e82f576d
/
.
/
node_modules
/
astral-regex
/
index.js
blob: 651177d40f1de3bb6b02e34ec4df14931eb2bc9f [
file
] [
log
] [
blame
]
'use strict'
;
const
regex
=
'[\uD800-\uDBFF][\uDC00-\uDFFF]'
;
const
astralRegex
=
options
=>
options
&&
options
.
exact
?
new
RegExp
(`^
$
{
regex
}
$
`)
:
new
RegExp
(
regex
,
'g'
);
module
.
exports
=
astralRegex
;