Skip to content

Conversation

@WhatDamon
Copy link
Contributor

@WhatDamon WhatDamon commented Jan 30, 2026

限制:

  • 阻止不符合正则 [0-9a-zA-Z#(),%.\\s]* 的内容
  • 强制只能在第一位使用 #

额外:

  • 全角转半角

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds input validation to the color picker dialog to prevent users from entering invalid characters in the color input fields.

Changes:

  • Added TextFormatter to RGB, HSB, and Hex color input fields
  • Created colorCharFormatter() method to validate character input and enforce hash symbol rules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@WhatDamon
Copy link
Contributor Author

上一个提交额外加了一个转半角的能力

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