mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00
fix: filter ANSI color for shell (#2529)
* feat: filter ANSI color for shell * chore: fix formatting --------- Co-authored-by: Oleg Lobanov <oleg.lobanov@bitvavo.com>
This commit is contained in:
parent
c2f1423c02
commit
9bcfa900f9
@ -113,7 +113,10 @@ export default {
|
||||
this.scroll();
|
||||
},
|
||||
() => {
|
||||
results.text = results.text.trimEnd();
|
||||
results.text = results.text
|
||||
// eslint-disable-next-line no-control-regex
|
||||
.replace(/\u001b\[[0-9;]+m/g, "") // Filter ANSI color for now
|
||||
.trimEnd();
|
||||
this.canInput = true;
|
||||
this.$refs.input.focus();
|
||||
this.scroll();
|
||||
|
Loading…
x
Reference in New Issue
Block a user