fix: Why is the suffic _n concatenated to the route_id?

This commit is contained in:
dancingCycle 2023-12-14 23:02:59 +01:00
parent ae4f320e16
commit d69378b2a8
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if(buffer instanceof Buffer){
//TODO Why is the suffic '_X' concatenated to the id?
if (typeof routeId === 'string') {
const routeIdLngth = routeId.length;
if (routeIdLngth === 7) {
if (routeIdLngth > 5) {
const indexOf = routeId.indexOf('_');
if (indexOf === 5) {
t.routeId = routeId.substring(0, 5);