mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
eslint fixes
This commit is contained in:
@@ -6,7 +6,7 @@ import { validationIssue, validationIssueFix } from '../core/validator';
|
||||
export function validationIncompatibleSource() {
|
||||
var type = 'incompatible_source';
|
||||
|
||||
var invalidSources = [{id:"google", regex:"google"}];
|
||||
var invalidSources = [{id:'google', regex:'google'}];
|
||||
|
||||
var validation = function(entity, context) {
|
||||
var issues = [];
|
||||
@@ -14,7 +14,7 @@ export function validationIncompatibleSource() {
|
||||
if (entity.tags && entity.tags.source) {
|
||||
|
||||
invalidSources.forEach(function(invalidSource) {
|
||||
var pattern = new RegExp(invalidSource.regex, "i");
|
||||
var pattern = new RegExp(invalidSource.regex, 'i');
|
||||
|
||||
if (entity.tags.source.match(pattern)) {
|
||||
issues.push(new validationIssue({
|
||||
|
||||
Reference in New Issue
Block a user