From 8a6e702c12ff6ea172d62fa07340f1e37f07c2df Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 27 Mar 2016 15:32:18 +0800 Subject: [PATCH] fix js error --- app/assets/javascripts/src/Metamaps.Import.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/src/Metamaps.Import.js.erb b/app/assets/javascripts/src/Metamaps.Import.js.erb index f30f65e5..def71168 100644 --- a/app/assets/javascripts/src/Metamaps.Import.js.erb +++ b/app/assets/javascripts/src/Metamaps.Import.js.erb @@ -70,7 +70,7 @@ Metamaps.Import = { }, simplify: function(string) { - return string; + return string .replace(/(^\s*|\s*$)/g, '') .toLowerCase(); },