From d888bec4095170d159c488292ba098b243c0a44e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Apr 2025 15:15:28 -0400 Subject: Clean up and improve patterns --- examples/commands/commands.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/commands') diff --git a/examples/commands/commands.tm b/examples/commands/commands.tm index 70a2303b..26b82790 100644 --- a/examples/commands/commands.tm +++ b/examples/commands/commands.tm @@ -28,7 +28,7 @@ struct ProgramResult(stdout:[Byte], stderr:[Byte], exit_type:ExitType): if status == 0: if text := Text.from_bytes(r.stdout): if trim_newline: - text = text:trim($/{1 nl}/, trim_left=no, trim_right=yes) + text = text:without_suffix(\n) return text else: return none return none -- cgit v1.2.3