Skip to content
Snippets Groups Projects
Commit a76aab8f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

efa: --walk-speed: Use smart matches instead of regexes

parent d9ba0bbb
No related branches found
No related tags found
No related merge requests found
...@@ -227,7 +227,7 @@ if ($restrict) { ...@@ -227,7 +227,7 @@ if ($restrict) {
} }
if ($walk_speed) { if ($walk_speed) {
if ($walk_speed =~ /^(normal|fast|slow)$/) { if ($walk_speed ~~ ['normal', 'fast', 'slow']) {
$post{changeSpeed} = $walk_speed; $post{changeSpeed} = $walk_speed;
} else { } else {
print STDERR "--walk-speed usage: normal / fast / slow\n"; print STDERR "--walk-speed usage: normal / fast / slow\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment