Commit 715bb508f86192b43c93f123eb4e13fa3479fa11

Authored by Rodrigo Souto
1 parent 5187e888

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 52 end
53 53  
54 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 56 end
57 57  
58 58 def self.default_hostname
... ...