Skip to content

fix: remove redundant leading-dash regex in _parse_app_name_and_id#153

Draft
hussein-awala wants to merge 1 commit intomainfrom
fix/remove-redundant-regex
Draft

fix: remove redundant leading-dash regex in _parse_app_name_and_id#153
hussein-awala wants to merge 1 commit intomainfrom
fix/remove-redundant-regex

Conversation

@hussein-awala
Copy link
Owner

Summary

  • The regex ^[^a-zA-Z]* already removes all leading non-alphabetic characters (including dashes)
  • The subsequent ^-* regex was redundant and has been removed

Test plan

  • Verify app names with leading dashes are still properly sanitized
  • Verify app names with leading numbers are still properly sanitized

🤖 Generated with Claude Code

The regex `^[^a-zA-Z]*` already removes all leading non-alphabetic
characters (which includes dashes), making the subsequent `^-*` regex
redundant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant