Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/OpenCloud/Compute/Resource/KeyPair.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class KeyPair extends PersistentObject

public function setName($name)
{
if (preg_match('#[^\w\d\s-_]#', $name) || strlen($name) > 255) {
if (preg_match('#[^\w\d\s\-_]#', $name) || strlen($name) > 255) {
throw new InvalidArgumentError(sprintf(
'The key name may not exceed 255 characters. It can contain the'
. ' following characters: alphanumeric, spaces, dashes and'
Expand Down