From f426594d808d9444c65692f1c3a82f264b4e7d74 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 19 Jan 2021 02:23:10 -0800 Subject: [PATCH] modules/trans.pl: use -no-ansi instead of regex --- modules/trans.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/trans.pl b/modules/trans.pl index 9713ba78..6977fe88 100755 --- a/modules/trans.pl +++ b/modules/trans.pl @@ -14,11 +14,8 @@ my $args = quotemeta "@ARGV"; $args =~ s/\\([ :-])/$1/g; $args =~ s/^\s+|\s+$//g; -my $opts = '-j'; +my $opts = '-j -no-ansi -no-autocorrect'; $opts .= ' -b' unless $args =~ /^-/; my $result = `trans $opts $args`; - -$result =~ s/\e\[\d+m//g; - print "$result\n";