-
-
Notifications
You must be signed in to change notification settings - Fork 806
/
Copy pathrepl.txt
73 lines (55 loc) · 1.39 KB
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{{alias}}( value )
Tests if a value is a relative path.
Function behavior is platform-specific. On Windows platforms, the function
is equal to `.win32()`. On POSIX platforms, the function is equal to
`.posix()`.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is a relative path.
Examples
--------
// Windows environments:
> var bool = {{alias}}( 'foo\\bar\\baz' )
true
// POSIX environments:
> bool = {{alias}}( './foo/bar/baz' )
true
{{alias}}.posix( value )
Tests if a value is a POSIX relative path.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is a POSIX relative path.
Examples
--------
> var bool = {{alias}}.posix( './foo/bar/baz' )
true
> bool = {{alias}}.posix( '/foo/../bar/baz' )
false
{{alias}}.win32( value )
Tests if a value is a Windows relative path.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is a Windows relative path.
Examples
--------
> var bool = {{alias}}( 'foo\\bar\\baz' )
true
> bool = {{alias}}( 'C:\\foo\\..\\bar\\baz' )
false
See Also
--------