mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 01:14:45 +02:00
fix(incident): add lowercase direction variants to _DIRECTION_LONG
ITD 511 sometimes sends lowercase direction strings (e.g. "east" instead of "East"). Add lowercase and abbreviated lowercase keys so the renderer resolves them without falling through to raw echo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
49de5f3a86
commit
ff887b500c
1 changed files with 5 additions and 5 deletions
|
|
@ -182,11 +182,11 @@ _SUB_TYPE_DISPLAY = {
|
||||||
|
|
||||||
# Direction short-form -> long-form for multi-line render.
|
# Direction short-form -> long-form for multi-line render.
|
||||||
_DIRECTION_LONG = {
|
_DIRECTION_LONG = {
|
||||||
"North": "Northbound", "N": "Northbound", "NB": "Northbound",
|
"North": "Northbound", "N": "Northbound", "NB": "Northbound", "north": "Northbound", "nb": "Northbound",
|
||||||
"South": "Southbound", "S": "Southbound", "SB": "Southbound",
|
"South": "Southbound", "S": "Southbound", "SB": "Southbound", "south": "Southbound", "sb": "Southbound",
|
||||||
"East": "Eastbound", "E": "Eastbound", "EB": "Eastbound",
|
"East": "Eastbound", "E": "Eastbound", "EB": "Eastbound", "east": "Eastbound", "eb": "Eastbound",
|
||||||
"West": "Westbound", "W": "Westbound", "WB": "Westbound",
|
"West": "Westbound", "W": "Westbound", "WB": "Westbound", "west": "Westbound", "wb": "Westbound",
|
||||||
"Both": "Both Directions",
|
"Both": "Both Directions", "both": "Both Directions",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue