1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00: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) { function formatString(s) {
if (!s) {
return null;
}
return s.replace(/(.{4})/g, '$1 ').trim().toUpperCase(); return s.replace(/(.{4})/g, '$1 ').trim().toUpperCase();
} }