mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-04 21:05:54 +08:00
null check recovery code
This commit is contained in:
parent
08e8e9ff64
commit
34e484c377
@ -33,6 +33,10 @@
|
||||
};
|
||||
|
||||
function formatString(s) {
|
||||
if (!s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return s.replace(/(.{4})/g, '$1 ').trim().toUpperCase();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user