Skip to content

Commit

Permalink
Do not remove spaces in inscription after ; sign
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Apr 29, 2024
1 parent c7618a4 commit 9a56469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/util/src/osm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function utilCleanTags(tags: object): object {
return /_hours|_times|:conditional$/.test(k);
}
function _skip(k) {
return /^(description|note|fixme)$/.test(k);
return /^(description|note|fixme|inscription)$/.test(k);
}
function _cleanValue(k, v) {
if (_skip(k)) return v;
Expand Down
5 changes: 3 additions & 2 deletions packages/util/test/osm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ describe('utilCleanTags', () => {
});
});

it('does not clean description, note, fixme', () => {
it('does not clean description, note, fixme, inscription', () => {
const t = {
description: ' value',
note: 'value ',
fixme: ' value '
fixme: ' value ',
inscription: ' value1 ; value2 '
};
const result = test.utilCleanTags(t);
assert.deepEqual(result, t);
Expand Down

0 comments on commit 9a56469

Please sign in to comment.