Revert some more complicated typo fixes

This commit is contained in:
Peter Newman
2020-08-10 17:41:39 +01:00
parent 4205ca1d07
commit cafb8cdbd5
11 changed files with 18 additions and 18 deletions

View File

@@ -4,5 +4,5 @@
"reference": {
"key": "healthcare"
},
"label": "Specialities"
"label": "Specialties"
}

View File

@@ -30,7 +30,7 @@
"point"
],
"terms": [
"kindergarten",
"kindergarden",
"pre-school"
],
"tags": {

View File

@@ -8,7 +8,7 @@
},
"terms": [
"agriculture",
"auxiliary",
"auxilary",
"chicken coop",
"farm auxiliary",
"pigsty",

View File

@@ -4,7 +4,7 @@
"area"
],
"terms": [
"kindergarten",
"kindergarden",
"pre-school"
],
"tags": {

View File

@@ -11,7 +11,7 @@
"terms": [
"DVD",
"VHS",
"video cassette"
"video casette"
],
"tags": {
"shop": "video"

View File

@@ -19,7 +19,7 @@
},
"terms": [
"Street Artwork",
"Guerrilla Artwork",
"Guerilla Artwork",
"Graffiti Artwork"
],
"name": "Graffiti"

View File

@@ -170,11 +170,11 @@ export function validationAlmostJunction(context) {
return false;
}
let occurrences = 0;
let occurences = 0;
for (const index in way.nodes) {
if (way.nodes[index] === node.id) {
occurrences += 1;
if (occurrences > 1) {
occurences += 1;
if (occurences > 1) {
return false;
}
}

View File

@@ -46,11 +46,11 @@ export function validationImpossibleOneway() {
}
function nodeOccursMoreThanOnce(way, nodeID) {
var occurrences = 0;
var occurences = 0;
for (var index in way.nodes) {
if (way.nodes[index] === nodeID) {
occurrences += 1;
if (occurrences > 1) return true;
occurences += 1;
if (occurences > 1) return true;
}
}
return false;

View File

@@ -104,7 +104,7 @@ describe('iD.geo - geography', function() {
var b = [0, 0];
expect(iD.geoSphericalDistance(a, b)).to.eql(0);
});
it('a straight 1 degree line at the equator is approximately 111 km', function() {
it('a straight 1 degree line at the equator is aproximately 111 km', function() {
var a = [0, 0];
var b = [1, 0];
expect(iD.geoSphericalDistance(a, b)).to.be.closeTo(110946, 10);

View File

@@ -419,7 +419,7 @@ describe('iD.Lanes', function() {
expect(bothways.length).to.eql(0);
});
it('should have correct number of direction elements', function() {
it('should have corrent number of direction elements', function() {
var lanes = iD.osmWay({tags: { highway: 'residential', lanes: 5, 'lanes:backward': 1, 'lanes:both_ways': 1 }}).lanes().lanes;
var forward = lanes.filter(function(l) {
return l.direction === 'forward';
@@ -1018,7 +1018,7 @@ describe('iD.Lanes', function() {
highway: 'residential',
lanes: 5,
maxspeed: '30kmh',
'maxspeed:lanes': '30|40|forty|40|40'
'maxspeed:lanes': '30|40|fourty|40|40'
}
}).lanes().metadata.maxspeedLanes;
expect(maxspeedLanes.unspecified).to.deep.equal([
@@ -1029,7 +1029,7 @@ describe('iD.Lanes', function() {
highway: 'residential',
lanes: 5,
maxspeed: '30kmh',
'maxspeed:lanes': '30|40|forty|40|random'
'maxspeed:lanes': '30|40|fourty|40|random'
}
}).lanes().metadata.maxspeedLanes;
@@ -1057,7 +1057,7 @@ describe('iD.Lanes', function() {
highway: 'residential',
lanes: 5,
maxspeed: '30kmh',
'maxspeed:lanes': '30|40|forty|40|40'
'maxspeed:lanes': '30|40|fourty|40|40'
}
}).lanes().lanes;
var maxspeedLanes = lanes.unspecified.map(function (l) {

View File

@@ -261,7 +261,7 @@ describe('iD.serviceTaginfo', function() {
server.respondWith('GET', /\/key\/values/,
[200, { 'Content-Type': 'application/json' },
'{"data":[{"value":"parking","description":"A place for parking cars", "fraction":0.2},'
+ '{"value":"PArking","description":"A common misspelling", "fraction":0.2},'
+ '{"value":"PArking","description":"A common mispelling", "fraction":0.2},'
+ '{"value":"parking;partying","description":"A place for parking cars *and* partying", "fraction":0.2},'
+ '{"value":"parking, partying","description":"A place for parking cars *and* partying", "fraction":0.2},'
+ '{"value":"*","description":"", "fraction":0.2}]}']