From 719c8888c2696d96665f77edc5267b1b0304f871 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 9 Jul 2015 06:37:50 +0300 Subject: [PATCH] data address formatting update; --- client/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/data.js b/client/data.js index 6a5d0c4f..bd6fe350 100644 --- a/client/data.js +++ b/client/data.js @@ -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)); }, '') }; }); \ No newline at end of file