refactor: uid validate rule (#3134)

This commit is contained in:
katherinehhh 2023-12-04 17:56:08 +08:00 committed by GitHub
parent 34e026cec5
commit 1b80cc431b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,5 +19,5 @@ export * from './SyncSQLFieldsAction';
export * from './DeleteCollectionAction'; export * from './DeleteCollectionAction';
registerValidateFormats({ registerValidateFormats({
uid: /^[A-Za-z0-9][A-Za-z0-9_-]*$/, uid: /^[a-zA-Z][a-zA-Z0-9_]*$/,
}); });