Repository navigation
CONTROL_TOKENS_PATTERN, uppercase - #16
Merged
Merged
Conversation
words-segmentation <= 0.0.6 imports CONTROl_TOKENS_PATTERN, so it remains an alias of the corrected name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Xm62qoeaTunFSU5GYCQ1f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Xm62qoeaTunFSU5GYCQ1f
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames
CONTROl_TOKENS_PATTERNtoCONTROL_TOKENS_PATTERN, with no alias. words-segmentation is its only consumer and switches to the new name in its next release; older words-segmentation releases will no longer import with this version.The public-API test pins the new name.
🤖 Generated with Claude Code
https://claude.ai/code/session_015Xm62qoeaTunFSU5GYCQ1f
Note
Low Risk
Naming-only breaking change to a documented public constant; behavior and pattern value are identical.
Overview
Fixes a typo in the public constant name:
CONTROl_TOKENS_PATTERN(lowercasel) is renamed toCONTROL_TOKENS_PATTERN. The regex string value is unchanged.The public-API test and its docstring are updated to import and reference the corrected name. No backward-compatibility alias is added, so anything still importing the old name will break until updated (e.g. words-segmentation on a matching release).
Reviewed by Cursor Bugbot for commit 5ef6557. Bugbot is set up for automated code reviews on this repo. Configure here.