File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ func volumeNameLen(path string) int {
18
18
}
19
19
20
20
// HasPrefix exists for historical compatibility and should not be used.
21
+ //
22
+ // Deprecated: HasPrefix does not respect path boundaries and
23
+ // does not ignore case when required.
21
24
func HasPrefix (p , prefix string ) bool {
22
25
return strings .HasPrefix (p , prefix )
23
26
}
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ func volumeNameLen(path string) int {
21
21
22
22
// HasPrefix exists for historical compatibility and should not be used.
23
23
//
24
- // Deprecated: Use strings.HasPrefix instead.
24
+ // Deprecated: HasPrefix does not respect path boundaries and
25
+ // does not ignore case when required.
25
26
func HasPrefix (p , prefix string ) bool {
26
27
return strings .HasPrefix (p , prefix )
27
28
}
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ func volumeNameLen(path string) int {
65
65
}
66
66
67
67
// HasPrefix exists for historical compatibility and should not be used.
68
+ //
69
+ // Deprecated: HasPrefix does not respect path boundaries and
70
+ // does not ignore case when required.
68
71
func HasPrefix (p , prefix string ) bool {
69
72
if strings .HasPrefix (p , prefix ) {
70
73
return true
You can’t perform that action at this time.
0 commit comments