From 8b264e1f80eb2413cbcc7d1f39e23cd93ed8a261 Mon Sep 17 00:00:00 2001 From: partouf Date: Sun, 31 Mar 2024 22:41:55 +0200 Subject: [PATCH] revert .length - 1 index --- lib/compilers/argument-parsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts index 43c8954f7..4a7279b72 100644 --- a/lib/compilers/argument-parsers.ts +++ b/lib/compilers/argument-parsers.ts @@ -1173,7 +1173,7 @@ export class GnuCobolParser extends GCCParser { .split(':')[1] .split(',') .map(v => v.trim()); - vers[vers.length - 1] = vers.at(-1).split(';')[0]; + vers[vers.length - 1] = vers[vers.length - 1].split(';')[0]; for (const ver of vers) { possible.push({ name: ver,