Skip to content

Commit

Permalink
fix: typo NotRegxp -> NotRegexp
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb authored and tr1v3r committed Feb 24, 2025
1 parent b051770 commit 5cf679d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
8 changes: 4 additions & 4 deletions field/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func (field String) Regexp(value string) Expr {
return field.regexp(value)
}

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

Expand Down Expand Up @@ -258,8 +258,8 @@ func (field Bytes) Regexp(value string) Expr {
return field.regexp(value)
}

// NotRegxp ...
func (field Bytes) NotRegxp(value string) Expr {
// NotRegexp ...
func (field Bytes) NotRegexp(value string) Expr {
return Not(field.Regexp(value))
}

Expand Down

0 comments on commit 5cf679d

Please sign in to comment.