31 lines
567 B
Plaintext
31 lines
567 B
Plaintext
|
{{alias}}()
|
||
|
Returns a regular expression to match a UTF-16 surrogate pair.
|
||
|
|
||
|
Returns
|
||
|
-------
|
||
|
re: RegExp
|
||
|
Regular expression.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var RE = {{alias}}();
|
||
|
> var bool = RE.test( 'abc\uD800\uDC00def' )
|
||
|
true
|
||
|
> bool = RE.test( 'abcdef' )
|
||
|
false
|
||
|
|
||
|
|
||
|
{{alias}}.REGEXP
|
||
|
Regular expression to match a UTF-16 surrogate pair.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var RE = {{alias}}.REGEXP;
|
||
|
> var bool = RE.test( 'abc\uD800\uDC00def' )
|
||
|
true
|
||
|
> bool = RE.test( 'abcdef' )
|
||
|
false
|
||
|
|
||
|
See Also
|
||
|
--------
|