whitespace

This commit is contained in:
mappu 2017-02-05 16:14:57 +13:00
parent 35994e81c6
commit c7e40ab6c1

View File

@ -22,9 +22,11 @@ var $ = (document.querySelectorAll ?
);
var nmdc_escape = function(str) {
return (''+str).length ? (''+str).
replace(/&/g,'&').replace(/\|/g,'|').replace(/\$/g,'$') :
' ';
return (
(''+str).length
? (''+str).replace(/&/g,'&').replace(/\|/g,'|').replace(/\$/g,'$')
: ' '
);
};
var hesc = function(s) {