Don't flag google drive as an incompatible source (close #7545)

This commit is contained in:
Quincy Morgan
2020-04-28 11:10:26 -07:00
parent 282e8de1ea
commit 9a13c6810b
2 changed files with 7 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ export function validationIncompatibleSource() {
var type = 'incompatible_source';
var invalidSources = [
{
id:'google', regex:'google', exceptRegex: 'books.google|Google Books'
id:'google', regex:'google', exceptRegex: 'books.google|Google Books|drive.google|googledrive|Google Drive'
}
];

View File

@@ -47,6 +47,12 @@ describe('iD.validations.incompatible_source', function () {
expect(issues).to.have.lengthOf(0);
});
it('ignores way with excepted source tag', function() {
createWay({ amenity: 'cafe', building: 'yes', name: 'Key Largo Café', source: 'Google drive'});
var issues = validate();
expect(issues).to.have.lengthOf(0);
});
it('flags way with incompatible source tag', function() {
createWay({ amenity: 'cafe', building: 'yes', name: 'Key Largo Café', source: 'Google Maps'});
var issues = validate();