We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94066d4 commit df17ea8Copy full SHA for df17ea8
dashboard/src/components/UpdateWebhookModal.tsx
@@ -29,11 +29,7 @@ import {
29
WebhookInputHeaderFields,
30
UpdateWebhookModalViews,
31
} from '../constants';
32
-import {
33
- capitalizeFirstLetter,
34
- validateEventName,
35
- validateURI,
36
-} from '../utils';
+import { capitalizeFirstLetter, validateURI } from '../utils';
37
import { AddWebhook, EditWebhook } from '../graphql/mutation';
38
import { rest } from 'lodash';
39
dashboard/src/utils/index.ts
@@ -86,8 +86,3 @@ export const validateURI = (uri: string) => {
86
? true
87
: false;
88
};
89
-
90
-export const validateEventName = (name: string) => {
91
- if (!name || name === '') return true;
92
- return name.toLowerCase().match(/^.{4,}[.].{5,}$/) ? true : false;
93
-};
0 commit comments