diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-22 19:03:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-22 19:03:41 +0200 |
commit | a76aab8f96eb0798dfe6b307fa04d04e4e41d16b (patch) | |
tree | 36d35b40994ecf4ef3f9998ccc2cc4c3951e9249 /bin | |
parent | d9ba0bbb26c9de741e1eaaa8506437572764c2aa (diff) |
efa: --walk-speed: Use smart matches instead of regexes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -227,7 +227,7 @@ if ($restrict) { } if ($walk_speed) { - if ($walk_speed =~ /^(normal|fast|slow)$/) { + if ($walk_speed ~~ ['normal', 'fast', 'slow']) { $post{changeSpeed} = $walk_speed; } else { print STDERR "--walk-speed usage: normal / fast / slow\n"; |