Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(node:util): support array type in format for the styleText util #13807

Closed

Conversation

pavi2410
Copy link

@pavi2410 pavi2410 commented Sep 8, 2024

What does this PR do?

This adds support for format array type in the styleText function from the node:util module. This feature is already https://nodejs.org/api/util.html#utilstyletextformat-text-options in Node.js

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests matching those from Node.js

@pavi2410 pavi2410 changed the title Support array type in format for the styleText util feat(node:util): support array type in format for the styleText util Sep 8, 2024
@paperdave
Copy link
Member

implementation looks reasonable, but the test is failing.

image

@pavi2410
Copy link
Author

I have now removed a useless test case that was not supposed to fail.

@paperdave paperdave self-assigned this Sep 10, 2024
@pavi2410 pavi2410 closed this Dec 21, 2024
@pavi2410 pavi2410 deleted the node-util/styleText-support_format_array branch December 21, 2024 14:15
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.

2 participants