Skip to content

Commit

Permalink
pass real regexp instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
ixzzd committed Feb 19, 2025
1 parent 3e88fe9 commit f0a6243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generator.ml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ let make_atd_of_schemas state schemas =
match state.toplevel_types with
| `All -> schemas
| `Only l ->
let res = List.map (ksprintf Str.regexp "^%s$") l in
let res = List.map (ksprintf Str.regexp "%s") l in
List.filter (fun (name, _) -> List.exists (fun re -> Str.string_match re name 0) res) schemas
in
input_toplevel_schemas :=
Expand Down

0 comments on commit f0a6243

Please sign in to comment.