Skip to content

Join some overloads of string methods to union parameters #13738

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

Closed
wants to merge 2 commits into from

Conversation

avonwyss
Copy link

Fixes the string methods which accept either a string or RegExp as pattern. Also, some help texts were changed to represent the actual behavior as per ECMA spec (e.g. when it is a literal pattern and when a regular expression pattern).

Fixes #5766

Fixes the string methods which accept either a string or RegExp as pattern. Also, some help texts were fixed to represent the actual behavior as per spec. See microsoft#5766
@msftclas
Copy link

Hi @avonwyss, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, MSBOT;

lib/lib.d.ts Outdated
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string that represents the regular expression.
* Replaces text in a string, using a regular expression or search string. Only regular expression with global flag replaces all occurrences.
Copy link
Member

Choose a reason for hiding this comment

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

Can you reword this to "When given a regular expression with its global flag set, this method replaces all occurrences. Otherwise, only the first match is replaced."

@falsandtru
Copy link
Contributor

falsandtru commented Feb 6, 2017

@falsandtru
Copy link
Contributor

any updates?

@RyanCavanaugh
Copy link
Member

@falsandtru can you fix the merge conflict please? Sorry about that

Ping @DanielRosenwasser for review

@falsandtru
Copy link
Contributor

done in #14639

@mhegazy
Copy link
Contributor

mhegazy commented May 23, 2017

Fixed by #14639

@mhegazy mhegazy closed this May 23, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants