Skip to content

Commit 06276f6

Browse files
committed
fix(lint): disable no-control-regex for intentional control char range in ENTITY_NAME_REGEX
1 parent 88aff61 commit 06276f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openmetadata-ui/src/main/resources/ui/src/constants/regex.constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ export const UrlEntityCharRegEx = /[#.%;?/\\]/g;
1515
export const EMAIL_REG_EX = /^\S+@\S+\.\S+$/;
1616

1717
/**
18-
* strings that contain a combination of letters, alphanumeric characters, hyphens,
19-
* spaces, periods, single quotes, ampersands, and parentheses, with support for Unicode characters.
18+
* Validates entity names. Blocks reserved FQN separator characters (::, >, <, ", |)
19+
* and ASCII control characters. Supports Unicode characters.
2020
*/
21+
// eslint-disable-next-line no-control-regex
2122
export const ENTITY_NAME_REGEX = /^((?!::)[^><"|\u0000-\u001f])*$/;
2223

2324
/**

0 commit comments

Comments
 (0)