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: add string/to-well-formed #1675

Merged

Conversation

Pratik772846
Copy link
Contributor

@Pratik772846 Pratik772846 commented Mar 3, 2024

Returns a well-formed string by replacing all lone surrogates

Fixes #1066

Resolves # 1066

Description

What is the purpose of this pull request?

This pull request:

  • Replaces all lone surrogates in a string and returns a well-formed string
  • If the string is already well formed then return a shallow copy of the string

Related Issues

Does this pull request have any related issues?

This pull request:

  • resolves #
  • fixes #

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

Returns a well formed string by replacing all lone surrogates

Fixes stdlib-js#1066
@Planeshifter Planeshifter changed the title feat: added @stdlib/string/to-well-formed feat: add string/to-well-formed Mar 3, 2024
Copy link
Member

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Pratik772846 for working on this. Requested changes.

lib/node_modules/@stdlib/string/to-well-formed/README.md Outdated Show resolved Hide resolved
lib/node_modules/@stdlib/string/to-well-formed/README.md Outdated Show resolved Hide resolved
lib/node_modules/@stdlib/string/to-well-formed/lib/main.js Outdated Show resolved Hide resolved
lib/node_modules/@stdlib/string/to-well-formed/lib/main.js Outdated Show resolved Hide resolved
lib/node_modules/@stdlib/string/to-well-formed/lib/main.js Outdated Show resolved Hide resolved
@Pranavchiku Pranavchiku added the Needs Changes Pull request which needs changes before being merged. label Mar 4, 2024
requested changes done
Returns a well formed string by replacing all lone surrogates

Fixes stdlib-js#1066
requested changes done
Returns a well formed string by replacing all lone surrogates

Fixes stdlib-js#1066
requested changes done
Returns a well formed string by replacing all lone surrogates

Fixes stdlib-js#1066
Copy link
Member

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Pranavchiku Pranavchiku added Ready To Merge A pull request which is ready to be merged. Needs Review A pull request which needs code review. and removed Needs Changes Pull request which needs changes before being merged. Ready To Merge A pull request which is ready to be merged. labels Mar 4, 2024
@Pranavchiku
Copy link
Member

I am not so great in reviewing this kind of PRs, I let Athan or Phillip review this.

@Pratik772846
Copy link
Contributor Author

@Planeshifter Can you please review these changes?

Signed-off-by: Philipp Burckhardt <[email protected]>
@Planeshifter
Copy link
Member

@Pratik772846 Implementation looks fine; will merge after CI has passed. Thank you!

@Planeshifter Planeshifter merged commit 31405e7 into stdlib-js:develop Mar 10, 2024
7 checks passed
@Pratik772846 Pratik772846 deleted the package-stdlib/string/iswellformed branch March 10, 2024 05:51
@Planeshifter Planeshifter removed the Needs Review A pull request which needs code review. label Mar 26, 2024
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.

[RFC]: add @stdlib/string/to-well-formed
3 participants