package mcp-kit

  1. Overview
  2. Docs

Source file fmt_regex.ml

1
2
3
4
5
(** Format validator: regex (ECMA-262). *)

open Jsonschema_core

let check_regex s = match Regex.compile s with Ok _ -> true | Error _ -> false