repl.txt (859B)
1 2 {{alias}}() 3 Returns a regular expression to test if a string is an extended-length path. 4 5 Extended-length paths are Windows paths which begin with `\\?\`. 6 7 Returns 8 ------- 9 re: RegExp 10 Regular expression. 11 12 Examples 13 -------- 14 > var RE = {{alias}}(); 15 > var path = '\\\\?\\C:\\foo\\bar'; 16 > var bool = RE.test( path ) 17 true 18 > path = '\\\\?\\UNC\\server\\share'; 19 > bool = RE.test( path ) 20 true 21 > path = 'C:\\foo\\bar'; 22 > bool = RE.test( path ) 23 false 24 > path = '/c/foo/bar'; 25 > bool = RE.test( path ) 26 false 27 > path = '/foo/bar'; 28 > bool = RE.test( path ) 29 false 30 31 32 {{alias}}.REGEXP 33 Regular expression to test if a string is an extended-length path. 34 35 Examples 36 -------- 37 > var bool = {{alias}}.REGEXP.test( 'C:\\foo\\bar' ) 38 false 39 40 See Also 41 -------- 42