fix(voice): bound OpenStreetMap text before it reaches voice results

- strip control and format characters from OSM tag values, keeping the
  zero-width (non-)joiners Persian and Indic names spell with, and cut
  them at 120 code points so a name cannot steer or flood the model
- adopt the nine new geometry test files in format-scope.json; five of
  them change by formatting only
This commit is contained in:
Manjunath committed 2026-11-03 14:33:51 +05:30
1 parent ecaddd838b
commit 2a13a06def
7 files changed
+119 -18

No files matched your search

+1 -4
View File
@@ -85,10 +85,7 @@ test('a crossing part and a separate island share one tight longitude frame', ()
[175, -15],
[175, -20],
];
const area = prepareArea([
[crossing],
[square(-170, -19, -160, -16)],
]);
const area = prepareArea([[crossing], [square(-170, -19, -160, -16)]]);
assert.equal(area.crossesAntimeridian, true);
assert.deepEqual(area.bbox, [175, -20, -160, -15]);
assert.equal(pointInPreparedArea(area, -17, 178), true);