Commit 7395011
fix: Fix pattern to handle long system identity (#386)
* fix: Fix pattern to handle long system identity names
When the system identity string is too long, the terminal output may be
truncated. The truncated output is marked by multiple carriage returns
(`\r`) and a `<` symbol.
This is a example of a truncated output:
`\r\n\r\r\r\r<MY_VERYVERY-LONG-SYSTEM-IDENTIY-NAME] > `
The existing regex failed to match these truncated prompts.
This update introduces a more flexible regex that matches both, the truncated and the preserved output.
* add change-log fragment for pr 386
* refactoring change-log fragment for pr 386
* Update changelogs/fragments/386-fix-pattern-to-handle-long-identity.yml
Co-authored-by: Felix Fontein <[email protected]>
---------
Co-authored-by: Felix Fontein <[email protected]>1 parent 8edc801 commit 7395011
File tree
2 files changed
+6
-1
lines changed- changelogs/fragments
- plugins/terminal
2 files changed
+6
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments