mirror of
https://github.com/internetee/registry.git
synced 2025-05-31 01:43:56 +02:00
Remove comment
This commit is contained in:
parent
c07dffe7cc
commit
d0251de28f
2 changed files with 4 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -20,3 +20,5 @@ config/secrets.yml
|
||||||
|
|
||||||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
||||||
.rvmrc
|
.rvmrc
|
||||||
|
|
||||||
|
.rubocop.yml
|
||||||
|
|
|
@ -16,7 +16,7 @@ class DomainNameValidator < ActiveModel::EachValidator
|
||||||
def validate(value)
|
def validate(value)
|
||||||
value = value.mb_chars.downcase.strip
|
value = value.mb_chars.downcase.strip
|
||||||
|
|
||||||
general_domains = /(.pri.ee|.com.ee|.fie.ee|.med.ee|.ee)/ #TODO Add more general domains here
|
general_domains = /(.pri.ee|.com.ee|.fie.ee|.med.ee|.ee)/
|
||||||
|
|
||||||
# it's punycode
|
# it's punycode
|
||||||
if value[2] == '-' && value[3] == '-'
|
if value[2] == '-' && value[3] == '-'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue