Skip to content

Commit 75c6030

Browse files
Fix improper capitalization of build diagnostics (#3217)
Signed-off-by: Brentley Jones <[email protected]>
1 parent 64e9631 commit 75c6030

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xcodeproj/internal/bazel_integration_files/process_bazel_build_log.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
re.VERBOSE,
2121
)
2222

23+
def _uppercase_first_letter(s: str) -> str:
24+
return s[:1].upper() + s[1:]
25+
2326
def _main(command: List[str]) -> None:
2427

2528
def _signal_handler(signum, frame):
@@ -59,7 +62,7 @@ def _signal_handler(signum, frame):
5962

6063
def _replacement(match: re.Match) -> str:
6164
message = f"""\
62-
{match.group("loc")}{match.group("sev")}{match.group("msg").capitalize()}\
65+
{match.group("loc")}{match.group("sev")}{uppercase_first_letter(match.group("msg"))}\
6366
"""
6467

6568
if message.startswith(execution_root):

0 commit comments

Comments
 (0)