mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
fix: update pattern schema camel case
This commit is contained in:
parent
aa8c54c511
commit
22007e451a
@ -32,11 +32,11 @@ export const nlpPatternSchema = z.discriminatedUnion('match', [
|
||||
|
||||
export type NlpPattern = z.infer<typeof nlpPatternSchema>;
|
||||
|
||||
export const PatternSchema = z.union([
|
||||
export const patternSchema = z.union([
|
||||
z.string(),
|
||||
z.instanceof(RegExp),
|
||||
PayloadPatternSchema,
|
||||
z.array(nlpPatternSchema),
|
||||
]);
|
||||
|
||||
export type Pattern = z.infer<typeof PatternSchema>;
|
||||
export type Pattern = z.infer<typeof patternSchema>;
|
||||
|
Loading…
Reference in New Issue
Block a user