fix: Why is the suffic _n concatenated to the route_id?
This commit is contained in:
parent
ae4f320e16
commit
d69378b2a8
2
index.js
2
index.js
|
@ -53,7 +53,7 @@ if(buffer instanceof Buffer){
|
||||||
//TODO Why is the suffic '_X' concatenated to the id?
|
//TODO Why is the suffic '_X' concatenated to the id?
|
||||||
if (typeof routeId === 'string') {
|
if (typeof routeId === 'string') {
|
||||||
const routeIdLngth = routeId.length;
|
const routeIdLngth = routeId.length;
|
||||||
if (routeIdLngth === 7) {
|
if (routeIdLngth > 5) {
|
||||||
const indexOf = routeId.indexOf('_');
|
const indexOf = routeId.indexOf('_');
|
||||||
if (indexOf === 5) {
|
if (indexOf === 5) {
|
||||||
t.routeId = routeId.substring(0, 5);
|
t.routeId = routeId.substring(0, 5);
|
||||||
|
|
Loading…
Reference in New Issue