From b6d574072cbf60e8bf132df64da852b6ec31762a Mon Sep 17 00:00:00 2001 From: maxgrossman Date: Sun, 24 Sep 2017 15:57:54 -0400 Subject: [PATCH] remove unneeded string clean up and logging --- js/insert-into-table.js | 2 +- js/simplify-props.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/insert-into-table.js b/js/insert-into-table.js index 2294464..c49f4d7 100755 --- a/js/insert-into-table.js +++ b/js/insert-into-table.js @@ -87,7 +87,7 @@ function insertIntoTable (feature, admin, st, db) { name_vn: properties.vn_name }) .into('admin_boundaries') - .then(() => {console.log(new Date())}) + .then(() => {}); }) .catch((e) => { console.log(e); diff --git a/js/simplify-props.js b/js/simplify-props.js index 7017f6d..56158d3 100755 --- a/js/simplify-props.js +++ b/js/simplify-props.js @@ -97,8 +97,6 @@ function cleanName(name, admin) { cleanName = name.replace('Tt. ', '') } else if (new RegExp(/TP./).test(name)) { cleanName = name.replace(/TP./, '') - if (new RegExp(/Ho Chi M/)) { cleanName = cleanName + `in`} - if (new RegExp(/Phon/)) { cleanName = cleanName + `g`} } else if (new RegExp(/P. /).test(name)) { cleanName = name.replace('P. ', '') } else if (new RegExp(/ D./).test(name)){