Fix the seemingly safe spellings found by codespell

Untested, only checked by inspection.
This commit is contained in:
Peter Newman
2020-06-28 23:06:44 +01:00
parent 977c15fe54
commit 2c47a11008
49 changed files with 87 additions and 87 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ export function uiFieldLocalized(field, context) {
}
// Remove whatever is after the last ' '
// NOTE: split/join on en-dash, not a hypen (to avoid conflict with fr - nl names in Brussels etc)
// NOTE: split/join on en-dash, not a hyphen (to avoid conflict with fr - nl names in Brussels etc)
function cleanName(name) {
var parts = name.split(' ');
if (parts.length > 1) {
+2 -2
View File
@@ -65,7 +65,7 @@ export function uiOsmoseDetails(context) {
.append('div')
.attr('class', 'qa-details-subsection');
// Suggested Fix (musn't exist for every issue type)
// Suggested Fix (mustn't exist for every issue type)
if (issueString(_qaItem, 'fix')) {
const div = detailsEnter
.append('div')
@@ -83,7 +83,7 @@ export function uiOsmoseDetails(context) {
.attr('target', '_blank');
}
// Common Pitfalls (musn't exist for every issue type)
// Common Pitfalls (mustn't exist for every issue type)
if (issueString(_qaItem, 'trap')) {
const div = detailsEnter
.append('div')
+1 -1
View File
@@ -128,7 +128,7 @@ export function uiPanelBackground(context) {
.selectAll('.background-info-span-vintage')
.text(metadata.vintage);
// update other metdata
// update other metadata
metadataKeys.forEach(function(k) {
if (k === 'zoom' || k === 'vintage') return; // done already
var val = result[k];
+1 -1
View File
@@ -386,7 +386,7 @@ export function uiPresetList(context) {
.append('div')
.attr('class', 'label-inner');
// NOTE: split/join on en-dash, not a hypen (to avoid conflict with fr - nl names in Brussels etc)
// NOTE: split/join on en-dash, not a hyphen (to avoid conflict with fr - nl names in Brussels etc)
label.selectAll('.namepart')
.data(preset.name().split(' '))
.enter()
+1 -1
View File
@@ -95,7 +95,7 @@ export function uiSectionFeatureType(context) {
.preset(_presets.length === 1 ? _presets[0] : presetManager.item('point'))
);
// NOTE: split on en-dash, not a hypen (to avoid conflict with hyphenated names)
// NOTE: split on en-dash, not a hyphen (to avoid conflict with hyphenated names)
var names = _presets.length === 1 ? _presets[0].name().split(' ') : [t('inspector.multiple_types')];
var label = selection.select('.label-inner');
+2 -2
View File
@@ -63,7 +63,7 @@ export function uiSectionRawMembershipEditor(context) {
function changeRole(d) {
if (d === 0) return; // called on newrow (shoudn't happen)
if (d === 0) return; // called on newrow (shouldn't happen)
if (_inChange) return; // avoid accidental recursive call #5731
var oldRole = d.member.role;
@@ -107,7 +107,7 @@ export function uiSectionRawMembershipEditor(context) {
function deleteMembership(d) {
this.blur(); // avoid keeping focus on the button
if (d === 0) return; // called on newrow (shoudn't happen)
if (d === 0) return; // called on newrow (shouldn't happen)
// remove the hover-highlight styling
utilHighlightEntities([d.relation.id], false, context);