Skip to content

Commit 05af565

Browse files
committed
Merge branch 'master' into issue_status_changed_notifications
2 parents 43cad71 + 5afb16e commit 05af565

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/models/key.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Key < ActiveRecord::Base
1010

1111
validates :key,
1212
presence: true,
13+
:format => { :with => /ssh-.{3} / },
1314
length: { within: 0..5000 }
1415

1516
before_save :set_identifier

spec/factories.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def self.new(type, *args)
7777
title
7878
key do
7979
"""
80-
AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
80+
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
8181
596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4
8282
soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=
8383
"""

0 commit comments

Comments
 (0)