From: Matt S Trout Date: Sat, 12 Oct 2019 18:40:06 +0000 (+0000) Subject: op dwim should require *only* non-word chars X-Git-Tag: v1.90_03~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd97d0c743913c9269fcd66c2b4bdb9e20d508a3;p=dbsrgits%2FSQL-Abstract.git op dwim should require *only* non-word chars --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 40ff82d..74f359b 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -963,7 +963,7 @@ sub _expand_hashpair { } if ($k =~ /^-./) { return $self->_expand_hashpair_op($k, $v); - } elsif ($k =~ /^[^\w]/i) { + } elsif ($k =~ /^\W+$/) { my ($lhs, @rhs) = ref($v) eq 'ARRAY' ? @$v : $v; return $self->_expand_op( -op, [ $k, $self->expand_expr($lhs, -ident), @rhs ]