commands/remove-key.rb in hubbard-0.0.9 vs commands/remove-key.rb in hubbard-0.0.10
- old
+ new
@@ -1,6 +1,6 @@
name = next_arg("Please specify the key name")
-if name !~ /[a-zA-Z0-9]+/
+if name !~ Hubbard::KEY_NAME_REGEX
$stderr.puts "Not a valid key name (letters and numbers only)"
exit 1
end
dirname = File.join(find_account_dir(@username), "keys")