Skip to content

Conversation

@yuluo-yx
Copy link
Contributor

@yuluo-yx yuluo-yx commented Jan 9, 2026

Add more check rules

Copilot AI review requested due to automatic review settings January 9, 2026 12:54
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 pull request adds six new validation rules to the GoFrame validation package for common string pattern validations. The rules include alpha, alpha-num, alpha-dash, numeric, lowercase, and uppercase validations.

  • Implements string pattern validators using regex matching
  • Follows the existing builtin validation rule pattern
  • Adds support for common validation scenarios

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
util/gvalid/internal/builtin/builtin_alpha.go Adds validation rule for alphabetic characters only (a-z, A-Z)
util/gvalid/internal/builtin/builtin_alpha_num.go Adds validation rule for alpha-numeric characters (a-z, A-Z, 0-9)
util/gvalid/internal/builtin/builtin_alpha_dash.go Adds validation rule for alpha-numeric characters with hyphens and underscores
util/gvalid/internal/builtin/builtin_lowercase.go Adds validation rule for lowercase alphabetic characters only (a-z)
util/gvalid/internal/builtin/builtin_numeric.go Adds validation rule for numeric strings only (0-9)
util/gvalid/internal/builtin/builtin_uppercase.go Adds validation rule for uppercase alphabetic characters only (A-Z)

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

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