forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#1429] improve(web): add form fields rules (apache#1633)
### What changes were proposed in this pull request? 1. Add naming rules to the name field of the metalake <img width="1036" alt="image" src="https://github.com/datastrato/gravitino/assets/17310559/5affca7a-5994-4138-9153-18dd181a250b"> 2. Optimize the display of the name field <img width="1036" alt="image" src="https://github.com/datastrato/gravitino/assets/17310559/0d29e959-2887-49b4-b4df-287aedfc3599"> ### Why are the changes needed? Fix: apache#1429 Fix: apache#1628 Fix: apache#1629 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? N/A
- Loading branch information
Showing
5 changed files
with
106 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
export const nameRegex = /^[a-zA-Z_][a-zA-Z0-9_]*$/ | ||
|
||
export const propKeyRegex = /^[a-zA-Z_][a-zA-Z0-9-_.]*$/ |