1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

null check recovery code

This commit is contained in:
Kyle Spearrin 2016-11-14 22:45:01 -05:00
parent 08e8e9ff64
commit 34e484c377

View File

@ -33,6 +33,10 @@
};
function formatString(s) {
if (!s) {
return null;
}
return s.replace(/(.{4})/g, '$1 ').trim().toUpperCase();
}