Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
a3b6a3ed
Commit
a3b6a3ed
authored
Dec 12, 2011
by
Jeremy Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated error messages to include dot as valid character
parent
926f3013
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/project.rb
app/models/project.rb
+2
-2
No files found.
app/models/project.rb
View file @
a3b6a3ed
...
...
@@ -26,7 +26,7 @@ class Project < ActiveRecord::Base
:uniqueness
=>
true
,
:presence
=>
true
,
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-\.]*$/
,
:message
=>
"only letters, digits & '_' '-' allowed"
},
:message
=>
"only letters, digits & '_' '-'
'.'
allowed"
},
:length
=>
{
:within
=>
0
..
255
}
validates
:description
,
...
...
@@ -36,7 +36,7 @@ class Project < ActiveRecord::Base
:presence
=>
true
,
:uniqueness
=>
true
,
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-\.]*$/
,
:message
=>
"only letters, digits & '_' '-' allowed"
},
:message
=>
"only letters, digits & '_' '-'
'.'
allowed"
},
:length
=>
{
:within
=>
3
..
255
}
validates
:owner
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment