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 5c24c19 commit 22c9587Copy full SHA for 22c9587
src/lib/query.ts
@@ -25,13 +25,10 @@ export class Query extends BaseQuery {
25
}
26
// Validate if input is a valid regex pattern
27
private isValidRegexPattern(input: string): boolean {
28
- try {
29
- new RegExp(input);
30
- return true;
31
- } catch (error) {
32
- return false;
+ RegExp(input);
+ return true;
33
34
- }
+
35
// Validate if value is an array of strings, numbers, or booleans
36
private isValidValue(value: any[]): boolean {
37
return Array.isArray(value) && value.every(item => typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean');
0 commit comments