浏览代码

Fix #325: fix unescaped left brace in regex warnings in testsuite

George S. Baugh 8 年之前
父节点
当前提交
f9f6d9469e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      t/04-commands-implemented.t

+ 1 - 1
t/04-commands-implemented.t

@@ -20,7 +20,7 @@ for my $command (keys %{$comm}) {
     open(my $fh, '<', $file) or die "Couldn't open file $file";
     open(my $fh, '<', $file) or die "Couldn't open file $file";
     for (<$fh>) {
     for (<$fh>) {
       if (/'?command'?\s*=>\s*'$command'/
       if (/'?command'?\s*=>\s*'$command'/
-       or /{'?commands'?}->{'?$command'?}/) {
+       or /{'?commands'?}->\{'?$command'?}/) {
         pass("find $command");
         pass("find $command");
         $found_command = 1;
         $found_command = 1;
       }
       }