mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
ecaddd838b
commit
2a13a06def
7 files changed
+119
-18
No files matched your search
@@ -254,10 +254,9 @@ test('a mixed antimeridian area gets the deliberate imagery date-line refusal',
|
||||
source: 'osm',
|
||||
});
|
||||
assert.deepEqual(area.bbox, [178, 0, -174, 1]);
|
||||
const result = await findImagery(
|
||||
deps(fakeLayer(), { area }).value,
|
||||
{ areaId: area.areaId },
|
||||
);
|
||||
const result = await findImagery(deps(fakeLayer(), { area }).value, {
|
||||
areaId: area.areaId,
|
||||
});
|
||||
assert.equal(result.ok, false);
|
||||
assert.equal(result.code, 'DATELINE');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user