-
-
Notifications
You must be signed in to change notification settings - Fork 578
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/base/replace-after-last
#1365
feat: add string/base/replace-after-last
#1365
Conversation
string/base/replace-after-last
lib/node_modules/@stdlib/string/base/replace-after-last/README.md
Outdated
Show resolved
Hide resolved
I am working on it along with replace-before-last |
lib/node_modules/@stdlib/string/base/replace-after-last/README.md
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/README.md
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/docs/repl.txt
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/docs/types/test.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/string/base/replace-after-last/test/test.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @AuenKr. Same concerns as replace-before-last
regarding the handling of fromIndex
when the value exceeds the last string index.
…ark/benchmark.js Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…epl.txt Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…ypes/index.d.ts Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…est.js Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…ypes/index.d.ts Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…in.js Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
…in.js Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Golden <103646877+AuenKr@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's land this PR; thanks for your contribution and addressing the flagged points!
lib/node_modules/@stdlib/string/base/replace-after-last/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
…ypes/index.d.ts Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
BREAKING CHANGE: resolve negative index arguments relative to last index Previously, a negative `fromIndex` argument would resolve to `0`. The current behavior resolves relative to the last character index. To preserve the previous behavior, users should clamp index arguments to index bounds before calling `replaceAfterLast`. Ref: #1365 Ref: 58bdac8
Resolves #814 .
Description
This pull request:
Related Issues
This pull request:
@stdlib/string/base/replace-after-last
#814Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers