Skip to content

Commit

Permalink
Remove double quotes from street names
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvlanck committed Nov 4, 2021
1 parent f7b194b commit 80e343e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/streetname-registry/StraatnaamUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ export default class StraatnaamUtils {
let mappedGeographicalNames = [];

for (let geographicalName of geographicalNames) {
let name: string = geographicalName.Spelling[0];

if (name.includes('"')) {
name = name.replace(/"/g, '');
}

mappedGeographicalNames.push({
"@language": geographicalName.Taal[0],
"@value": geographicalName.Spelling[0],
"@value": name,
});
}

Expand Down

0 comments on commit 80e343e

Please sign in to comment.