diff options
| author | David Leadbeater | 2015-01-10 17:50:12 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:50:12 +0000 |
| commit | 3350aef6b04f0d33ad52b41179c6742a98d2aa1f (patch) | |
| tree | 287ac1dba07509317309acab3161f5da286958e9 /scripts/grep.pl | |
| parent | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff) | |
| parent | 2d920d6f610e176bf121f9089f21956595df70e9 (diff) | |
| download | scripts.irssi.org-3350aef6b04f0d33ad52b41179c6742a98d2aa1f.tar.bz2 | |
Merge branch 'obfuscoder-perlcritic-e-l' into gh-pages
Diffstat (limited to 'scripts/grep.pl')
| -rw-r--r-- | scripts/grep.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/grep.pl b/scripts/grep.pl index 976d867..35ce15c 100644 --- a/scripts/grep.pl +++ b/scripts/grep.pl @@ -57,7 +57,7 @@ sub cmd_grep { $cmd = join(' ',@args); # check if the regexp is valid - eval("'' =~ /$match/"); + eval { qr/$match/ }; if($@) { # there was an error chomp $@; Irssi::print($@,MSGLEVEL_CLIENTERROR); |
