feat(audit): sanitize stored upstream responses
This commit is contained in:
@@ -25,3 +25,11 @@ func Validate(number string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func Mask(number string) string {
|
||||
if Validate(number) != nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return number[:6] + "******" + number[12:]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user