Use RegExp#test intead of String#match
This commit is contained in:
@@ -321,10 +321,7 @@ const modify = new Modify({
|
||||
.getFeatures()
|
||||
.getArray()
|
||||
.every(function (feature) {
|
||||
return feature
|
||||
.getGeometry()
|
||||
.getType()
|
||||
.match(/Polygon/);
|
||||
return /Polygon/.test(feature.getGeometry().getType());
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user