mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Fix rubocop issues that are new to Ruby 2.4
This commit is contained in:
parent
82dbd3e8b8
commit
cf16aa4039
4 changed files with 12 additions and 7 deletions
|
@ -145,7 +145,9 @@ class EppController < ApplicationController
|
|||
# VALIDATION
|
||||
def latin_only
|
||||
return true if params['frame'].blank?
|
||||
return true if params['frame'].match?(/\A[\p{Latin}\p{Z}\p{P}\p{S}\p{Cc}\p{Cf}\w_\'\+\-\.\(\)\/]*\Z/i)
|
||||
if params['frame'].match?(/\A[\p{Latin}\p{Z}\p{P}\p{S}\p{Cc}\p{Cf}\w_\'\+\-\.\(\)\/]*\Z/i)
|
||||
return true
|
||||
end
|
||||
|
||||
epp_errors << {
|
||||
msg: 'Parameter value policy error. Allowed only Latin characters.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue