Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#6399] Added validation to fileset dialog (#6400)

Pranay Kumar Karviee296fa1165a
diff --git a/web/web/src/lib/utils/regex.js b/web/web/src/lib/utils/regex.js
index 072211785b..161253367f 100644
--- a/web/web/src/lib/utils/regex.js
+++ b/web/web/src/lib/utils/regex.js
@@ -17,9 +17,9 @@
* under the License.
*/
-export const nameRegex = /^\w[\w]{0,63}$/
+export const nameRegex = /^\w[\w/=-]{0,63}$/
export const nameRegexDesc =
- 'This field must begin with a letter or underscore, contain only alphanumeric characters or underscores, and be between 1 and 64 characters in length'
+ 'This field must start with a letter, digit, or underscore, can include alphanumeric characters, underscores, slashes (/), equal signs (=), or hyphens (-), and must be between 1 and 64 characters long.'
export const keyRegex = /^[a-zA-Z_][a-zA-Z0-9-_.]*$/