We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 265154b commit 2c2e157Copy full SHA for 2c2e157
1 file changed
src/resolvers/projectPatterns.ts
@@ -54,7 +54,7 @@ interface RemoveProjectPatternMutationPayload {
54
55
/**
56
* Validates a new event grouping pattern against existing patterns
57
- *
+ *
58
* @param newEventGroupingPattern - The new pattern to validate
59
* @param existingEventGroupingPatternList - List of existing patterns to check against
60
* @throws Error if pattern is invalid or collides with existing patterns
@@ -66,13 +66,13 @@ function validateNewEventGroupingPattern(
66
* Check if pattern is valid RegExp
67
*/
68
try {
69
+ /* eslint-disable-next-line no-new */
70
new RegExp(newEventGroupingPattern);
71
} catch (error) {
72
throw new ApolloError('Invalid regular expression pattern');
73
}
74
75
-
76
export default {
77
Mutation: {
78
0 commit comments