Skip to content

Commit

Permalink
Fix the regular expression to read RID value. (#7994)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich authored Feb 17, 2025
2 parents d090224 + 2d7338a commit be7ee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils/getDotnetInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function parseDotnetInfo(dotnetInfo: string, dotnetExecutablePath: string
let match: RegExpMatchArray | null;
if ((match = /^\s*Version:\s*([^\s].*)$/.exec(line))) {
version = match[1];
} else if ((match = /^ RID:\s*([\w\-.]+)$/.exec(line))) {
} else if ((match = /^\s*RID:\s*([\w\-.]+)$/.exec(line))) {
runtimeId = match[1];
} else if ((match = /^\s*Architecture:\s*(.*)/.exec(line))) {
architecture = match[1];
Expand Down

0 comments on commit be7ee2e

Please sign in to comment.