summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-22 19:03:41 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-22 19:03:41 +0200
commita76aab8f96eb0798dfe6b307fa04d04e4e41d16b (patch)
tree36d35b40994ecf4ef3f9998ccc2cc4c3951e9249 /bin/efa
parentd9ba0bbb26c9de741e1eaaa8506437572764c2aa (diff)
efa: --walk-speed: Use smart matches instead of regexes
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index 4a779ec..7b42733 100755
--- a/bin/efa
+++ b/bin/efa
@@ -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";