mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
changed stripWhitespace function to use string.prototype.replace per secan's suggestion
This commit is contained in:
@@ -107,7 +107,7 @@ export function uiFeatureList(context) {
|
||||
}
|
||||
|
||||
function stripWhitespace(val) {
|
||||
return val.split('').filter(char => char !== ' ').join('');
|
||||
return val.replace(/ /g, '');
|
||||
}
|
||||
|
||||
function mapDrawn(e) {
|
||||
|
||||
Reference in New Issue
Block a user