Skip to content
Snippets Groups Projects
Commit 95619f45 authored by pabois's avatar pabois
Browse files

fix

parents 18e91104 6c3c1e78
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ module ApplicationHelper
def masked_string(string)
string = string.to_s # in case it was nil
mask_length = [(string.length - 5), 0].max
mask_length = 30 if mask_length > 30
string.to_s.gsub(/.+(?=.{5})/, '•' * mask_length)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment