1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

fixed condition for being an AS_set

This commit is contained in:
Massimo Candela
2021-06-23 23:07:22 +02:00
parent af89e7a67c
commit 0267a71de6

View File

@@ -56,7 +56,7 @@ export class AS {
if (["string", "number"].includes(typeof(numbers))) {
this.numbers = [ numbers ];
} else if (numbers instanceof Array && numbers.length){
if (numbers.length === 1) {
if (numbers.length > 1) {
this.ASset = true;
}
this.numbers = numbers;