Skip to content

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.

@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
Signed-off-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
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 <pburckhardt@outlook.com>
@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
@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