Commit 715bb508f86192b43c93f123eb4e13fa3479fa11
1 parent
5187e888
Exists in
master
and in
22 other branches
Escape special char dash (-) on identifier format
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero.rb
| @@ -52,7 +52,7 @@ module Noosfero | @@ -52,7 +52,7 @@ module Noosfero | ||
| 52 | end | 52 | end |
| 53 | 53 | ||
| 54 | def self.identifier_format | 54 | def self.identifier_format |
| 55 | - '[a-z0-9][a-z0-9~.]*([_-][a-z0-9~.]+)*' | 55 | + '[a-z0-9][a-z0-9~.]*([_\-][a-z0-9~.]+)*' |
| 56 | end | 56 | end |
| 57 | 57 | ||
| 58 | def self.default_hostname | 58 | def self.default_hostname |