mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
file protocol and abs path (#10493)
This commit is contained in:
@@ -5084,7 +5084,7 @@ pub inline fn charIsAnySlash(char: u8) bool {
|
||||
}
|
||||
|
||||
pub inline fn startsWithWindowsDriveLetter(s: []const u8) bool {
|
||||
return s.len >= 2 and s[0] == ':' and switch (s[1]) {
|
||||
return s.len > 2 and s[1] == ':' and switch (s[0]) {
|
||||
'a'...'z', 'A'...'Z' => true,
|
||||
else => false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user