From d69378b2a808f5da60aaeb7cc5cc739c80282fe6 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Thu, 14 Dec 2023 23:02:59 +0100 Subject: [PATCH] fix: Why is the suffic _n concatenated to the route_id? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 20b27cd..154b63e 100644 --- a/index.js +++ b/index.js @@ -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);