Skip to content

Commit 08cd15d

Browse files
committed
fix: add pipe character test case and clarify regex comment
1 parent 36d5ae3 commit 08cd15d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ describe('Test Regex', () => {
168168
expect(ENTITY_NAME_REGEX.test('name\nbad')).toEqual(false);
169169
expect(ENTITY_NAME_REGEX.test('name\rbad')).toEqual(false);
170170
expect(ENTITY_NAME_REGEX.test('name\x00bad')).toEqual(false);
171+
expect(ENTITY_NAME_REGEX.test('name|bad')).toEqual(false);
171172
});
172173

173174
describe('TAG_NAME_REGEX', () => {

0 commit comments

Comments
 (0)