Merge pull request #2928 from kepta/master

Removal of faulty regex
This commit is contained in:
Bryan Housel
2016-01-23 14:04:45 -05:00
+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) {