Skip to content

fix(info): add missing space in os version display#3321

Open
yogeshwaran-c wants to merge 1 commit intonestjs:masterfrom
yogeshwaran-c:fix/info-os-version-missing-space
Open

fix(info): add missing space in os version display#3321
yogeshwaran-c wants to merge 1 commit intonestjs:masterfrom
yogeshwaran-c:fix/info-os-version-missing-space

Conversation

@yogeshwaran-c
Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

The nest info command displays the OS version without a space between the OS name and the kernel release number, e.g. macOS24.3.0 or Windows10.0.26200 instead of macOS 24.3.0 or Windows 10.0.26200.

This was introduced during the chalk-to-ansis migration (commit 101081a). The original chalk code used multi-argument chalk.blue(osName(...), release()), where chalk auto-inserted a space between arguments. The migration converted this to string concatenation blue(osName(...) + release()) but omitted the space.

What is the new behavior?

The OS version is now displayed with a space: macOS 24.3.0, Windows 10.0.26200, Linux 6.1.0, etc.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Added a unit test that verifies the OS version output contains a space between the name and the release number.

The chalk-to-ansis migration changed multi-argument chalk.blue() to
string concatenation but omitted the space that chalk auto-inserted
between arguments, resulting in output like "macOS24.3.0" instead of
"macOS 24.3.0".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant