Skip to content

Commit

Permalink
feat: NotRegxp -> NotRegexp
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb committed Feb 24, 2025
1 parent ecd818a commit e266bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion field/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func TestExpr_Build(t *testing.T) {
Result: "`name` REGEXP ?",
},
{
Expr: field.NewString("", "name").NotRegxp(".*"),
Expr: field.NewString("", "name").NotRegexp(".*"),
ExpectedVars: []interface{}{".*"},
Result: "NOT `name` REGEXP ?",
},
Expand Down
4 changes: 2 additions & 2 deletions field/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func (field Chars[T]) Regexp(value string) Expr {
return field.regexp(value)
}

// NotRegxp ...
func (field Chars[T]) NotRegxp(value string) Expr {
// NotRegexp ...
func (field Chars[T]) NotRegexp(value string) Expr {
return expr{e: clause.Not(field.Regexp(value).expression())}
}

Expand Down

0 comments on commit e266bb4

Please sign in to comment.