From 5b9908d2f6e441bfa1d8c8621f0eca0bd267de4b Mon Sep 17 00:00:00 2001 From: Kushan Joshi <0o3ko0@gmail.com> Date: Sat, 23 Jan 2016 23:57:20 +0530 Subject: [PATCH] Removal of faulty regex In ref to https://github.com/openstreetmap/iD/issues/2892 --- js/id/ui/entity_editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/id/ui/entity_editor.js b/js/id/ui/entity_editor.js index 1bca3a383..a0fc46e14 100644 --- a/js/id/ui/entity_editor.js +++ b/js/id/ui/entity_editor.js @@ -161,8 +161,7 @@ iD.ui.EntityEditor = function(context) { // clean website-like tags if (k.indexOf('website') !== -1 || cleaned.indexOf('http') === 0) { cleaned = cleaned - .replace(/[\u200B-\u200F\uFEFF]/g, '') // strip LRM and other zero width chars - .replace(/[^\w\+\-\.\/\?\[\]\(\)~!@#$%&*',:;=]/g, encodeURIComponent); + .replace(/[\u200B-\u200F\uFEFF]/g, ''); // strip LRM and other zero width chars // clean email-like tags } else if (k.indexOf('email') !== -1) {