diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-01 15:15:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-01 15:15:28 -0400 |
| commit | d888bec4095170d159c488292ba098b243c0a44e (patch) | |
| tree | 0d0ff7c2e2c4ed75519ee32ec6482e04b1e68b3d /examples/commands | |
| parent | 354ed77535d17f2fc71780f1aaeb7ebfb80307d4 (diff) | |
Clean up and improve patterns
Diffstat (limited to 'examples/commands')
| -rw-r--r-- | examples/commands/commands.tm | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
