-
Notifications
You must be signed in to change notification settings - Fork 16
/
astral-regex.node.txt
16 lines (11 loc) · 1.56 KB
/
astral-regex.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ASTRAL-REGEX
VERSION ==> #2.0.0
ASTRAL-REGEX([OPTS])->REGEXP #REGEXP to match Unicode astral|surrogate characters.
#I.e. U-d800 to U-dfff, used for Unicode codepoints > U-10000
#Does not match surrogate characters in isolation (since this is invalid UTF-8)
#OPTS:
# - exact BOOL:
# - false (def): 'g' flag, no ^$
# - true: no 'g' flag, but ^$