mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: allow empty regex names in ParsedStreamSchema and AIOStream
This commit is contained in:
@@ -654,7 +654,7 @@ export const ParsedStreamSchema = z.object({
|
||||
message: z.string().max(1000).optional(),
|
||||
regexMatched: z
|
||||
.object({
|
||||
name: z.string().min(1).optional(),
|
||||
name: z.string().optional(),
|
||||
pattern: z.string().min(1).optional(),
|
||||
index: z.number(),
|
||||
})
|
||||
@@ -731,7 +731,7 @@ export const AIOStream = StreamSchema.extend({
|
||||
message: z.string().max(1000).optional(),
|
||||
regexMatched: z
|
||||
.object({
|
||||
name: z.string().min(1).optional(),
|
||||
name: z.string().optional(),
|
||||
pattern: z.string().min(1).optional(),
|
||||
index: z.number(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user