time-to-botec/squiggle/node_modules/@stdlib/regexp/utf16-unpaired-surrogate/docs/repl.txt

31 lines
547 B
Plaintext
Raw Normal View History

{{alias}}()
Returns a regular expression to match an unpaired UTF-16 surrogate.
Returns
-------
re: RegExp
Regular expression.
Examples
--------
> var RE = {{alias}}();
> var bool = RE.test( 'abc' )
false
> bool = RE.test( '\uD800' )
true
{{alias}}.REGEXP
Regular expression to match an unpaired UTF-16 surrogate.
Examples
--------
> var RE = {{alias}}.REGEXP;
> var bool = RE.test( 'abc' )
false
> bool = RE.test( '\uD800' )
true
See Also
--------