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