Allow additional characters in bean-query queries.

These additional characters often appear in queries.

Allow them.
This commit is contained in:
Bradley M. Kuhn 2020-06-15 21:29:04 -07:00
parent a21a35d656
commit 975cceeaab
No known key found for this signature in database
GPG key ID: F15E8BD6D05E26B3

View file

@ -84,7 +84,7 @@ while (1) {
print STDERR "sleep for 2 seconds\n" if $VERBOSE > 2;
sleep 2;
next;
} elsif ($query{question} !~ /^[\-\@\w.\s\"\'\_\(\)]+$/) {
} elsif ($query{question} !~ /^[\,\=\~\-\@\w.\s\"\'\_\(\)]+$/) {
print STDERR "Query string $query{question} looks suspicious, not running beancount query!\n";
(tied %query)->shlock;
$query{fifoName} = mktemp("REJECTED_beancount-query-fifo-this-file-does-not-exist_${$}_XXXXXXXXX");