null check recovery code

This commit is contained in:
Kyle Spearrin 2016-11-14 22:45:01 -05:00
parent 08e8e9ff64
commit 34e484c377
1 changed files with 4 additions and 0 deletions

View File

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