mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 03:21:20 -06:00
Fix unset versionFlags (#4922)
Closes #4921 ``` > a = ("")?.split("|") [ '' ] > a = (undefined)?.split("|") undefined > a = ("a|b")?.split("|") [ 'a', 'b' ] ```
This commit is contained in:
@@ -258,7 +258,7 @@ export class CompilerFinder {
|
||||
.split(':')
|
||||
.filter(a => a !== ''),
|
||||
options: actualOptions,
|
||||
versionFlag: props('versionFlag', '').split('|'),
|
||||
versionFlag: props<string>('versionFlag')?.split('|'),
|
||||
versionRe: props<string>('versionRe'),
|
||||
explicitVersion: props<string>('explicitVersion'),
|
||||
compilerType: props('compilerType', ''),
|
||||
|
||||
@@ -36,7 +36,7 @@ export type CompilerInfo = {
|
||||
baseName: string;
|
||||
alias: string[];
|
||||
options: string;
|
||||
versionFlag?: string[];
|
||||
versionFlag: string[] | undefined;
|
||||
versionRe?: string;
|
||||
explicitVersion?: string;
|
||||
compilerType: string;
|
||||
|
||||
Reference in New Issue
Block a user