Skip to content

Simplify usage of python str.startswith. NFC#26970

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:startswith
May 16, 2026
Merged

Simplify usage of python str.startswith. NFC#26970
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:startswith

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 16, 2026

This method can take a tuple of prefixes to check for.

Same for .endswith.

I noticed this while working on #26969

This method can take a tuple of prefixes to check for.

Same for `.endswith`.
@sbc100 sbc100 requested a review from juj May 16, 2026 16:42
@sbc100 sbc100 merged commit 926047d into emscripten-core:main May 16, 2026
30 checks passed
@sbc100 sbc100 deleted the startswith branch May 16, 2026 20:11
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.

2 participants