Removal of faulty regex

In ref to
https://github.com/openstreetmap/iD/issues/2892
This commit is contained in:
Kushan Joshi
2016-01-23 23:57:20 +05:30
parent 648aef945b
commit 5b9908d2f6
+1 -2
View File
@@ -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) {