Remove all Lint/AmbiguousRegexpLiteral rubocop issues on code, and from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-16 00:11:37 +02:00
parent e6afa9473e
commit 87e73e772c
3 changed files with 4 additions and 10 deletions

View File

@@ -7,12 +7,12 @@ module VerificationHelper
end
def mask_phone(number)
match = number.match /\d{3}$/
match = number.match(/\d{3}$/)
"******#{match}"
end
def mask_email(string)
match = string.match /^(\w{1,3})(.*)@(.*)/
match = string.match(/^(\w{1,3})(.*)@(.*)/)
data_to_display = match[1]
data_to_mask = match[2]
@@ -21,4 +21,4 @@ module VerificationHelper
data_to_display + "*"*data_to_mask.size + "@" + email_provider
end
end
end