data address formatting update;
This commit is contained in:
1 parent
a43c8b012a
commit
719c8888c2
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ angular.module("hudozhka.data", [])
|
||||
email: "hudozka@gmail.com",
|
||||
address: ["г. Шлиссельбург", "ул. 18 января", "д. 3"]
|
||||
.reduce(function(address, item){
|
||||
return address + ' ' + item.replace(' ', String.fromCharCode(0xA0));
|
||||
return address + (address == '' ? '' : ' ') + item.replace(' ', String.fromCharCode(0xA0));
|
||||
}, '')
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user