mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 23:43:46 +00:00
Don't flag google drive as an incompatible source (close #7545)
This commit is contained in:
@@ -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'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user