Skip to content

Commit afff37d

Browse files
authored
docs: add example code block
PR-URL: #11725 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 20303f7 commit afff37d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/regexp/extended-length-path/lib

lib/node_modules/@stdlib/regexp/extended-length-path/lib/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
* Returns a regular expression that matches an extended-length path.
2525
*
2626
* @returns {RegExp} regular expression
27+
*
28+
* @example
29+
* var RE_EXTENDED_LENGTH_PATH = reExtendedLengthPath();
30+
* var bool = RE_EXTENDED_LENGTH_PATH.test( '\\\\?\\C:\\foo\\bar' );
31+
* // returns true
32+
*
33+
* bool = RE_EXTENDED_LENGTH_PATH.test( 'C:\\foo\\bar' );
34+
* // returns false
2735
*/
2836
function reExtendedLengthPath() {
2937
return /^\\\\\?\\.+/;

0 commit comments

Comments
 (0)