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

Add removeprefix/removesuffix to Starlark strings #14824

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Feb 15, 2022

Implements bazelbuild/starlark#185 in Java Starlark.

@fmeum
Copy link
Collaborator Author

fmeum commented Feb 15, 2022

This is ready for review now that bazelbuild/starlark@d6a52c5 has landed.

Copy link

@adonovan adonovan left a comment

Choose a reason for hiding this comment

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

LGTM, though you'll need @brandjon to merge it upstream.

@fmeum
Copy link
Collaborator Author

fmeum commented Feb 16, 2022

@adonovan I added a failure test and a test for no modifications for each method now that this behavior is also documented in the spec.

Copy link
Contributor

@laurentlb laurentlb left a comment

Choose a reason for hiding this comment

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

lgtm

(I've started the import process, but it's waiting for approval inside Google)

@bazel-io bazel-io closed this in 0b09e9e Feb 23, 2022
@fmeum fmeum deleted the removeprefix branch February 24, 2022 07:27
fmeum added a commit to fmeum/bazel that referenced this pull request Feb 24, 2022
Implements bazelbuild/starlark#185 in Java Starlark.

Closes bazelbuild#14824.

PiperOrigin-RevId: 430556229
Wyverald pushed a commit that referenced this pull request Feb 24, 2022
Implements bazelbuild/starlark#185 in Java Starlark.

Closes #14824.

PiperOrigin-RevId: 430556229
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.

3 participants