mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 09:13:04 +02:00
Don't use prefix matching if we can help it
This commit is contained in:
@@ -289,10 +289,7 @@ describe('resolveChannelFromHashToken', () => {
|
||||
];
|
||||
|
||||
it('prefers stable key lookup (case-insensitive)', () => {
|
||||
const result = resolveChannelFromHashToken(
|
||||
'abcdef0123456789abcdef0123456789',
|
||||
channels
|
||||
);
|
||||
const result = resolveChannelFromHashToken('abcdef0123456789abcdef0123456789', channels);
|
||||
expect(result?.key).toBe('ABCDEF0123456789ABCDEF0123456789');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user