mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01: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