1 Commits

Author SHA1 Message Date
629ea6eaee fix frozen string literal warning
Some checks failed
Gitea Actions Demo / lint (push) Failing after 28s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / release-image (push) Has been skipped
2025-03-11 04:54:04 -05:00

View File

@ -10,7 +10,7 @@ class Sensitive
end end
def mask(v) def mask(v)
"".concat(v[0, @head], @ch * (v.length - (@head + @tail)), v[-@tail, @tail]) String.new.concat(v[0, @head], @ch * (v.length - (@head + @tail)), v[-@tail, @tail])
end end
def unwrap def unwrap