Index: tools/gn/filesystem_utils.cc |
diff --git a/tools/gn/filesystem_utils.cc b/tools/gn/filesystem_utils.cc |
index 9140f80660e94f69abdf7d667bcc4cb1d372f9e2..4cfefa9dc7ee658448233ae08a5af04473e69c2b 100644 |
--- a/tools/gn/filesystem_utils.cc |
+++ b/tools/gn/filesystem_utils.cc |
@@ -99,9 +99,8 @@ bool DoesBeginWindowsDriveLetter(const base::StringPiece& path) { |
if (path[1] != ':') |
return false; |
- // Check drive letter |
- if (!((path[0] >= 'A' && path[0] <= 'Z') || |
- path[0] >= 'a' && path[0] <= 'z')) |
+ // Check drive letter. |
+ if (!IsAsciiAlpha(path[0])) |
return false; |
if (!IsSlash(path[2])) |