Fix over-escaping in recent transactions
Recently a bug was fixed by escaping input, but that escaping only does the right thing in double quotes (qq).
This commit is contained in:
parent
863e4f6e91
commit
5a10c8f8a2
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ sub recent {
|
|||
my ($n, $u) = @_;
|
||||
$n += 0;
|
||||
print "Last $n transactions for $u:\n";
|
||||
system "perl -lane'lc(\$F[3]) eq lc(q[\Q$u\E]) or next; s/CHECKOUT\\s+\\S+\\s+\\S+\\s+// or next; s/ #// or next; s/_/ /; print' .revbank.log | tail -n$n";
|
||||
system "perl -lane'lc(\$F[3]) eq lc(qq[\Q$u\E]) or next; s/CHECKOUT\\s+\\S+\\s+\\S+\\s+// or next; s/ #// or next; s/_/ /; print' .revbank.log | tail -n$n";
|
||||
}
|
||||
|
||||
sub balance {
|
||||
|
|
Loading…
Add table
Reference in a new issue