mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 02:28:15 +02:00
added custom insertion id regex check
This commit is contained in:
1 parent
ff935a39a1
commit
147344546b
9 files changed
+37
-4
No files matched your search
@@ -2,6 +2,11 @@
|
||||
// validation and applying changes to existing DB models through the app Dao.
|
||||
package forms
|
||||
|
||||
import "regexp"
|
||||
|
||||
// base ID value regex pattern
|
||||
var idRegex = regexp.MustCompile(`^[^\@\#\$\&\|\.\,\'\"\\\/\s]+$`)
|
||||
|
||||
// InterceptorNextFunc is a interceptor handler function.
|
||||
// Usually used in combination with InterceptorFunc.
|
||||
type InterceptorNextFunc = func() error
|
||||
|
||||
Reference in new issue
Block a user