We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0830a4 commit cb4676cCopy full SHA for cb4676c
1 file changed
src/app/_components/InstallCommandBlock.tsx
@@ -568,7 +568,7 @@ function HighlightedCommand({ command }: { command: string }) {
568
/* Strip leading env var tokens: mode=xxx or var_xxx="yyy" */
569
const envRe = /^((?:(?:mode=\S+|var_\w+="[^"]*")\s+)+)/;
570
const envMatch = rest.match(envRe);
571
- if (envMatch) {
+ if (envMatch?.[1]) {
572
const envStr = envMatch[1];
573
rest = rest.slice(envStr.length);
574
const tokens = envStr.trim().split(/\s+/);
0 commit comments